Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
We should support '<DATE> + <INTEGER>' operator. I'm not sure whether it is standard SQL, but it occurs in TPC-DS (query 72).
Note that d + n is equivalent to d + interval n day if n is a constant.
Attachments
Issue Links
- is depended upon by
-
PHOENIX-3440 Calcite has specific requirements for date and datetime operations
- Open
- is related to
-
CALCITE-308 Wrong result when using DATE+INTERVAL arithmetics
- Closed