Konstantin Orlov created IGNITE-22831:
-----------------------------------------

             Summary: Sql. Make ItCastToTsWithLocalTimeZoneTest stable (attempt 
#2)
                 Key: IGNITE-22831
                 URL: https://issues.apache.org/jira/browse/IGNITE-22831
             Project: Ignite
          Issue Type: Bug
          Components: sql
            Reporter: Konstantin Orlov
            Assignee: Konstantin Orlov


First attempt (IGNITE-22793) to make this test stable fixed only problem of big 
offset displacement.

Here is output of a failure:
{code:java}
     [2024-07-24T23:15:21,189][INFO ][Test 
worker][ItCastToTsWithLocalTimeZoneTest] >>> Stopping test: 
ItCastToTsWithLocalTimeZoneTest#explicitCastOfLiteralsOnMultiInsert, 
displayName: explicitCastOfLiteralsOnMultiInsert(), cost: 790ms.
org.opentest4j.AssertionFailedError: Collections are not equal (position 0):
      Expected: 2024-07-24T06:00:00Z <class java.time.Instant>
      Actual:   2024-07-25T06:00:00Z <class java.time.Instant>
{code}
Given that TC agent run at UTC timezone, the date used to compute expected 
result is `2024-07-24`, while in fact it should be `2024-07-25` because SQL 
session timezone is +8 hours, so current date is `2024-07-25`, and displacement 
should be applied to date-time value `2024-07-24 12:00:00`.

[https://ggtc.gridgain.com/buildConfiguration/GridGain9Gradle_Test_IntegrationTests_SQLEngine/11873590?buildTab=log&linesState=372.6116.6136.6145.6152&logView=flowAware&focusLine=6139]



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

Reply via email to