Details
-
Bug
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
Add DATE_TRUNC function consistent with Postgres. Per the specification, syntax is as follows:
DATE_TRUNC(<string>, <timestamp | date | time>)
It is a different (and more complex) specification than BigQuery's DATE_TRUNC (see CALCITE-5180), which has the following syntax:
DATE_TRUNC(<date>, <interval>)
Postgres DATE_TRUNC would be implemented after CALCITE-5155 and would allow user-defined time frames in the field argument.
Attachments
Issue Links
- is related to
-
CALCITE-5180 Implement BigQuery functions for DATE, TIME, TIMESTAMP, DATETIME
- Open
-
CALCITE-5155 Custom time frames
- Closed
-
CALCITE-5902 Add DATE_TRUNC function consistent with Apache Spark
- Open
-
CALCITE-5447 Add DATE_TRUNC for BigQuery
- Closed
- relates to
-
CALCITE-5269 Implement BigQuery TIME_TRUNC and TIMESTAMP_TRUNC functions
- Closed