Description
Add this test to SqlOperatorBaseTest#testTimestampAdd :
tester.checkScalar( "timestampadd(MICROSECOND, 2, timestamp '2016-02-24 12:42:25.000000')", "2016-02-24 12:42:25.000002", "TIMESTAMP(6) NOT NULL");
SqlTimestampAddFunction has incorrect precision for MILLISECOND and MICROSECOND. Note that the parser does not allow for MILLISECOND as a time unit.
Attachments
Attachments
Issue Links
- is related to
-
CALCITE-2299 TIMESTAMPADD(SQL_TSI_FRAC_SECOND) should be nanoseconds not microseconds
- Closed