Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
spark.sql("select (CURRENT_DATE - INTERVAL '7 DAYS') ").show +-----------------------------------------------------------------------+ |date_add(current_date(), (- extractansiintervaldays(INTERVAL '7' DAY)))| +-----------------------------------------------------------------------+ | 2023-06-06| +-----------------------------------------------------------------------+
currently the parser does not allows:
INTERVAL '7 DAYS'
it only accepts:
INTERVAL '7' DAYS
Attachments
Issue Links
- is related to
-
CALCITE-4134 Interval expressions
- Closed
-
CALCITE-3383 Allow plural time units in interval literals
- Closed