Description
Move the addMonths and subtractMonths methods from Calcite's SqlFunctions to Avatica's DateTimeUtils. This is consistent with other date-time functions being in Avatica.
Also, move tests from Calcite SqlFunctionsTest to Avatica DateTimeUtilsTest.
After they are in an Avatica release that Calcite uses (see CALCITE-1612), we can remove from Calcite and also get some extra functionality (see CALCITE-1613).
Attachments
Issue Links
- causes
-
CALCITE-3078 Move public lastDay method from Calcite to Avatica
- Closed
- is depended upon by
-
CALCITE-1609 Implement unixDateExtract and timeExtract for more time units
- Closed
-
CALCITE-1613 Implement EXTRACT for time unit DOW, DOY; and fix CENTURY
- Closed