-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Description
Steps to reproduce (on Ubuntu Linux):
- Set timezone to Europe/London (test may fail in other timezones, just noticed it in this one):
sudo timedatectl set-timezone Europe/London - 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
- Set the timezone to America/Los_Angeles:
sudo timedatectl set-timezone America/Los_Angeles - 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
Labels
No labels