Skip to content

TestLocalScan.testFilterWithDateAndTimestamp failing in Europe/London Timezone for ORC #1113

@massdosage

Description

@massdosage

Steps to reproduce (on Ubuntu Linux):

  1. Set timezone to Europe/London (test may fail in other timezones, just noticed it in this one):
    sudo timedatectl set-timezone Europe/London
  2. Run the tests
    ./gradlew :iceberg-data:clean :iceberg-data:test --tests org.apache.iceberg.data.TestLocalScan.testFilterWithDateAndTimestamp[1]

This fails with output like so:

> Task :iceberg-data:test
org.apache.iceberg.data.TestLocalScan > testFilterWithDateAndTimestamp[1] FAILED
    java.lang.AssertionError
        at org.junit.Assert.fail(Assert.java:86)
        at org.junit.Assert.assertTrue(Assert.java:41)
        at org.junit.Assert.assertTrue(Assert.java:52)
        at org.apache.iceberg.data.TestLocalScan.testFilterWithDateAndTimestamp(TestLocalScan.java:486)
1 test completed, 1 failed
> Task :iceberg-data:test FAILED
  1. Set the timezone to America/Los_Angeles:
    sudo timedatectl set-timezone America/Los_Angeles
  2. Run the tests again:
    ./gradlew :iceberg-data:clean :iceberg-data:test --tests org.apache.iceberg.data.TestLocalScan.testFilterWithDateAndTimestamp[1]
    This succeeds:
    BUILD SUCCESSFUL in 36s

The Iceberg build should run successfully regardless of the Timezone of the machine it is running on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions