Skip to content
Snippets Groups Projects
Commit 789cecde authored by Cam Saül's avatar Cam Saül Committed by GitHub
Browse files

Merge pull request #3933 from metabase/add-bigquery-date-and-datetime-mappings

Add mappings for BigQuery DATE and DATETIME types
parents 7cb2f369 4f6b2d8f
No related branches found
No related tags found
No related merge requests found
......@@ -93,6 +93,8 @@
"INTEGER" :type/Integer
"RECORD" :type/Dictionary ; RECORD -> field has a nested schema
"STRING" :type/Text
"DATE" :type/Date
"DATETIME" :type/DateTime
"TIMESTAMP" :type/DateTime})
(defn- table-schema->metabase-field-info [^TableSchema schema]
......@@ -142,6 +144,8 @@
"INTEGER" #(Long/parseLong %)
"RECORD" identity
"STRING" identity
"DATE" parse-timestamp-str
"DATETIME" parse-timestamp-str
"TIMESTAMP" parse-timestamp-str})
(defn- post-process-native
......
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