Description
The test testCurrentDateTimeTimeStamp fails on windows with the following error:
exp ts:2023-03-10T10:43:24.767792200, act ts:2023-03-10T10:43:24.767 ==> expected: <true> but was: <false>
Expected :true
Actual :false
<Click to see difference>
org.opentest4j.AssertionFailedError: exp ts:2023-03-10T10:43:24.767792200, act ts:2023-03-10T10:43:24.767 ==> expected: <true> but was: <false>
at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at app//org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
at app//org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
at app//org.junit.jupiter.api.Assertions.assertTrue(Assertions.java:211)
at app//org.apache.ignite.internal.sql.engine.ItFunctionsTest.checkDateTimeQuery(ItFunctionsTest.java:91)
at app//org.apache.ignite.internal.sql.engine.ItFunctionsTest.testCurrentDateTimeTimeStamp(ItFunctionsTest.java:61)
...
It appears SQL truncates the time to 3 digits after decimal point thus causing the failure.
Attachments
Issue Links
- is fixed by
-
IGNITE-19162 Sql. Trim all less than millisecond information from timestamp.
- Open