Skip to content
Snippets Groups Projects
Unverified Commit 261c3b00 authored by Cam Saul's avatar Cam Saul Committed by GitHub
Browse files

Merge pull request #8898 from lmatsuura/bigquery-numeric-support

Bigquery numeric support
parents d970f159 253e377f
No related branches found
No related tags found
No related merge requests found
......@@ -147,6 +147,7 @@
"DATETIME" :type/DateTime
"TIMESTAMP" :type/DateTime
"TIME" :type/Time
"NUMERIC" :type/Decimal
:type/*))
(defn- table-schema->metabase-field-info [^TableSchema schema]
......@@ -217,6 +218,7 @@
{"BOOLEAN" (constantly #(Boolean/parseBoolean %))
"FLOAT" (constantly #(Double/parseDouble %))
"INTEGER" (constantly #(Long/parseLong %))
"NUMERIC" (constantly #(bigdec %))
"RECORD" (constantly identity)
"STRING" (constantly identity)
"DATE" parse-timestamp-str
......
......@@ -137,7 +137,7 @@
:type/Date :TIMESTAMP
:type/DateTime :TIMESTAMP
:type/DateTimeWithTZ :TIMESTAMP
:type/Decimal :FLOAT
:type/Decimal :NUMERIC
:type/Dictionary :RECORD
:type/Float :FLOAT
:type/Integer :INTEGER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment