Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Some BigQuery functions, such as EXTRACT and DATE_TRUNC, accept the operand WEEK(weekday), where weekday is one of SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY. After this change, any function that accepts WEEK or ISOWEEK timeframe will also accept WEEK(SUNDAY) etc.
Note that WEEK is equivalent to WEEK(SUNDAY) and ISOWEEK is equivalent to WEEK(MONDAY).
In this change we also allow WEEKS as a synonym for WEEK, and QUARTERS as a synonym for QUARTER.
Attachments
Issue Links
- depends upon
-
CALCITE-5341 Upgrade Calcite to Avatica 1.23.0
- Closed
- is a child of
-
CALCITE-5447 Add DATE_TRUNC for BigQuery
- Closed
- is related to
-
CALCITE-5505 JavaCC warns about missing LOOKAHEAD directives in Parser.jj
- Closed