Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4793

CassandraAdapterDataTypesTest.testCollectionsInnerValues fails depending on the user timezone

    XMLWordPrintableJSON

Details

    Description

      Depending on the user timezone, the test fails because the value of the timestamp field is not the expected one.

      For instance, the following command:

      ./gradlew :cassandra:test --tests "org.apache.calcite.test.CassandraAdapterDataTypesTest.testCollectionsInnerValues" -Pguava.version=25.0-jre -Duser.timezone=GMT

      causes the following test failure:

      java.lang.AssertionError: Expected: is "EXPR$0=1; EXPR$1=v1; 1=3000000000; 2=30ff87; 3=2015-05-03 11:30:54\n" but: was "EXPR$0=1; EXPR$1=v1; 1=3000000000; 2=30ff87; 3=2015-05-03 13:30:54\n"

      The issue is not present for guava versions >= 26.0-jre.

      Attachments

        Issue Links

          Activity

            People

              asolimando Alessandro Solimando
              asolimando Alessandro Solimando
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m