Skip to content

Commit 0173f63

Browse files
Adding DATE/TIME/DATETIME to LegacySQLTypeName
1 parent 38451c2 commit 0173f63

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/LegacySQLTypeName.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@ public enum LegacySQLTypeName {
3333
BOOLEAN(StandardSQLTypeName.BOOL),
3434
/** Represents an absolute point in time, with microsecond precision. */
3535
TIMESTAMP(StandardSQLTypeName.TIMESTAMP),
36+
/** Represents a logical calendar date. Note, support for this type is limited in legacy SQL. */
37+
DATE(StandardSQLTypeName.DATE),
38+
/**
39+
* Represents a time, independent of a specific date, to microsecond precision. Note, support for
40+
* this type is limited in legacy SQL.
41+
*/
42+
TIME(StandardSQLTypeName.TIME),
43+
/**
44+
* Represents a year, month, day, hour, minute, second, and subsecond (microsecond precision).
45+
* Note, support for this type is limited in legacy SQL.
46+
*/
47+
DATETIME(StandardSQLTypeName.DATETIME),
3648
/** A record type with a nested schema. */
3749
RECORD(StandardSQLTypeName.STRUCT);
3850

0 commit comments

Comments
 (0)