Aleksey Demakov created IGNITE-19000:
----------------------------------------

             Summary: testCurrentDateTimeTimeStamp fails on Windows
                 Key: IGNITE-19000
                 URL: https://issues.apache.org/jira/browse/IGNITE-19000
             Project: Ignite
          Issue Type: Bug
          Components: sql
    Affects Versions: 3.0.0-beta2
            Reporter: Aleksey Demakov
            Assignee: Aleksey Demakov
             Fix For: 3.0.0-beta2


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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to