Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-19000

testCurrentDateTimeTimeStamp fails on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0
    • 3.0
    • sql

    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

          Activity

            People

              ademakov Aleksey Demakov
              ademakov Aleksey Demakov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: