Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Implement missing BigQuery functions for DATE, TIME, TIMESTAMP, DATETIME.
Functions include:
- CURRENT_DATE, CURRENT_DATETIME, CURRENT_TIME with timezone;
- EXTRACT with time unit values WEEK(weekday), DATE, TIME;
- various DATE, TIME, TIMESTAMP, DATETIME constructor functions;
- DATE_ADD, DATETIME_ADD, TIME_ADD, TIMESTAMP_ADD;
- DATE_SUB, DATETIME_SUB, TIME_SUB, TIMESTAMP_SUB;
- DATE_DIFF, DATETIME_DIFF, TIME_DIFF, TIMESTAMP_DIFF;
- DATE_TRUNC, DATETIME_TRUNC, TIME_TRUNC, TIMESTAMP_TRUNC;
- LAST_DAY;
- FORMAT_DATE, FORMAT_DATETIME, FORMAT_TIME, FORMAT_TIMESTAMP;
- PARSE_DATE, PARSE_DATETIME, PARSE_TIME, PARSE_TIMESTAMP.
The following functions are already implemented: CURRENT_DATETME, DATE(string), DATE_FROM_UNIX_DATE, TIMESTAMP_MICROS, TIMESTAMP_MILLIS, TIMESTAMP_SECONDS, UNIX_MICROS, UNIX_MILLIS, UNIX_SECONDS, UNIX_DATE.
Attachments
Issue Links
- is a parent of
-
CALCITE-5498 BigQuery TIMESTAMP() function short notation for timezone offsets isn’t supported in Java 8
- Closed
-
CALCITE-5447 Add DATE_TRUNC for BigQuery
- Closed
-
CALCITE-5543 Implement BigQuery functions for parsing DATE, TIME, TIMESTAMP, DATETIME
- Closed
- is related to
-
CALCITE-759 Add DayOfWeek and other missing date/time functions
- Open
-
CALCITE-3218 Syntax error while parsing DATEADD function (which is valid on Redshift)
- Closed
- relates to
-
CALCITE-5290 Add DATE_TRUNC function consistent with Postgres
- In Progress
- links to
1.
|
Implement BigQuery TIME_TRUNC and TIMESTAMP_TRUNC functions | Closed | TJ Banghart | |||||||||
2.
|
Implement FORMAT_TIMESTAMP, FORMAT_DATE, FORMAT_TIME, FORMAT_DATETIME functions (enabled in BigQuery library) | Closed | TJ Banghart |
|
||||||||
3.
|
Implement TIMESTAMP_ADD function (compatible with BigQuery) | Closed | Tanner Clary |
|
||||||||
4.
|
Implement TIMESTAMP_DIFF function (compatible with BigQuery) | Closed | Tanner Clary |
|
||||||||
5.
|
Implement BigQuery TIME_ADD/TIME_DIFF | Closed | Tanner Clary |
|
||||||||
6.
|
Implement DATE_SUB, TIME_SUB, TIMESTAMP_SUB (compatible w/ BigQuery) | Closed | Tanner Clary |
|
||||||||
7.
|
Allow EXTRACT() to accept ISOWEEK and WEEK(WEEKDAY) | In Progress | Tanner Clary |
|
||||||||
8.
|
Implement BigQuery TIME() Function | Closed | Tanner Clary | |||||||||
9.
|
Implement BigQuery DATE_ADD/DATE_DIFF | Closed | Tanner Clary |
|
||||||||
10.
|
Implement BigQuery DATETIME_ADD/DATETIME_DIFF | Closed | Tanner Clary |
|
||||||||
11.
|
Implement BigQuery DATETIME_SUB | Closed | Tanner Clary |
|