Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, a query such as: EXTRACT(DAYOFWEEK FROM DATE '2008-12-25'); is invalid while EXTRACT(DOW FROM DATE '2008-12-25') is acceptable. BigQuery (and perhaps other dialects) accept the non-abbreviated version as a valid time unit. After this change, DAYOFWEEK and DAYOFYEAR would both be synonyms of DOW and DOY, respectively.
Any comments, questions, or suggestions for the linked PR are highly appreciated.
Attachments
Issue Links
- is related to
-
CALCITE-2539 Several test case not passed in CalciteSqlOperatorTest.java
- Closed
- relates to
-
CALCITE-6092 Invalid test cases in CAST String to Time
- Open
- links to