From 0173f63ed5266f7dade9794908fbea12ce896b39 Mon Sep 17 00:00:00 2001 From: Garrett Jones Date: Wed, 7 Dec 2016 08:48:40 -0800 Subject: [PATCH] Adding DATE/TIME/DATETIME to LegacySQLTypeName --- .../com/google/cloud/bigquery/LegacySQLTypeName.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LegacySQLTypeName.java b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LegacySQLTypeName.java index 37a327072759..d1a549671712 100644 --- a/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LegacySQLTypeName.java +++ b/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LegacySQLTypeName.java @@ -33,6 +33,18 @@ public enum LegacySQLTypeName { BOOLEAN(StandardSQLTypeName.BOOL), /** Represents an absolute point in time, with microsecond precision. */ TIMESTAMP(StandardSQLTypeName.TIMESTAMP), + /** Represents a logical calendar date. Note, support for this type is limited in legacy SQL. */ + DATE(StandardSQLTypeName.DATE), + /** + * Represents a time, independent of a specific date, to microsecond precision. Note, support for + * this type is limited in legacy SQL. + */ + TIME(StandardSQLTypeName.TIME), + /** + * Represents a year, month, day, hour, minute, second, and subsecond (microsecond precision). + * Note, support for this type is limited in legacy SQL. + */ + DATETIME(StandardSQLTypeName.DATETIME), /** A record type with a nested schema. */ RECORD(StandardSQLTypeName.STRUCT);