Skip to content

Conversation

@LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Oct 20, 2022

What changes were proposed in this pull request?

The main change of this pr as follows:

  • Replace Antarctica/Vostok to Asia/Urumqi in Spark code
  • Replace Europe/Amsterdam to Europe/Brussels in Spark code
  • Regenerate gregorian-julian-rebase-micros.json using generate 'gregorian-julian-rebase-micros.json' in RebaseDateTimeSuite with Java 8u352
  • Regenerate julian-gregorian-rebase-micros.json using generate 'julian-gregorian-rebase-micros.json' in RebaseDateTimeSuite with Java 8u352
  • Revert change of SPARK-40846

Why are the changes needed?

Make GA run successfully with the latest Java 8/11/17:

  • Java 8u352
  • Java 11.0.17
  • Java 17.0.5

Does this PR introduce any user-facing change?

No

How was this patch tested?

  • Pass GitHub Actions
  • Manual test: the following commands can test pass with Java 8u345, 8u352, 11.0.16, 11.0.17, 17.0.4 and 17.0.5
    • build/sbt "catalyst/test"
    • build/sbt "sql/testOnly *SQLQueryTestSuite -- -t \"timestamp-ltz.sql\""
    • build/sbt "sql/testOnly *SQLQueryTestSuite -- -t \"timestamp-ntz.sql\""

@github-actions github-actions bot added the SQL label Oct 20, 2022
@LuciferYang LuciferYang changed the title [WIP][SPARK-40851][SQL] [WIP][SPARK-40851][SQL] Fix test failed with latest Java 8/11/17 Oct 20, 2022
@LuciferYang LuciferYang changed the title [WIP][SPARK-40851][SQL] Fix test failed with latest Java 8/11/17 [SPARK-40851][SQL] Fix test failed with latest Java 8/11/17 Oct 20, 2022
@LuciferYang
Copy link
Contributor Author

LuciferYang commented Oct 20, 2022

@github-actions github-actions bot added the INFRA label Oct 20, 2022
@@ -4,15 +4,15 @@
"diffs" : [ -173768, -87368, -968, 85432, 171832, 258232, 344632, 431032, 517432, 603832, 690232, 776632, 863032, 776632, 690232, 603832, 517432, 431032, 344632, 258232, 171832, 85432, -968, 0 ]
}, {
"tz" : "Africa/Accra",
"switches" : [ -62135596748, -59006361548, -55850687948, -52695014348, -46383580748, -43227907148, -40072233548, -33760799948, -30605126348, -27449452748, -21138019148, -17982345548, -14826671948, -12220070348, -12219983948, -12219897548, -12219811148, -12219724748, -12219638348, -12219551948, -12219465548, -12219379148, -12219292748, -2208988800 ],
"diffs" : [ -172852, -86452, -52, 86348, 172748, 259148, 345548, 431948, 518348, 604748, 691148, 777548, 863948, 777548, 691148, 604748, 518348, 431948, 345548, 259148, 172748, 86348, -52, 0 ]
"switches" : [ -62135595832, -59006360632, -55850687032, -52695013432, -46383579832, -43227906232, -40072232632, -33760799032, -30605125432, -27449451832, -21138018232, -17982344632, -14826671032, -12220069432, -12219983032, -12219896632, -12219810232, -12219723832, -12219637432, -12219551032, -12219464632, -12219378232, -12219291832, -2208988800 ],
Copy link
Contributor Author

@LuciferYang LuciferYang Oct 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regenerate gregorian-julian-rebase-micros.json using generate 'gregorian-julian-rebase-micros.json' in RebaseDateTimeSuite with Java 8u352

"tz" : "Africa/Accra",
"switches" : [ -62135769600, -59006448000, -55850688000, -52694928000, -46383408000, -43227648000, -40071888000, -33760368000, -30604608000, -27448848000, -21137328000, -17981568000, -14825808000, -12219292800, -2208988800 ],
"diffs" : [ 172852, 86452, 52, -86348, -172748, -259148, -345548, -431948, -518348, -604748, -691148, -777548, -863948, 52, 0 ]
"diffs" : [ 173768, 87368, 968, -85432, -171832, -258232, -344632, -431032, -517432, -603832, -690232, -776632, -863032, 968, 0 ]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regenerate julian-gregorian-rebase-micros.json using generate 'julian-gregorian-rebase-micros.json' in RebaseDateTimeSuite with Java 8u352

@LuciferYang LuciferYang changed the title [SPARK-40851][SQL] Fix test failed with latest Java 8/11/17 [SPARK-40851][SQL] Support GA run with the latest Java 8/11/17 Oct 20, 2022
@LuciferYang LuciferYang changed the title [SPARK-40851][SQL] Support GA run with the latest Java 8/11/17 [SPARK-40851][SQL] Make GA run successfully with the latest Java 8/11/17 Oct 20, 2022
@LuciferYang LuciferYang changed the title [SPARK-40851][SQL] Make GA run successfully with the latest Java 8/11/17 [SPARK-40851][INFRA ][SQL][TESTS] Make GA run successfully with the latest Java 8/11/17 Oct 20, 2022
@allisonwang-db
Copy link
Contributor

Thanks for fixing this. This is the cause of the test failures in #38260. cc @cloud-fan

@HyukjinKwon
Copy link
Member

cc @MaxGekk

@MaxGekk
Copy link
Member

MaxGekk commented Oct 21, 2022

All GAs passed at least once:
Screenshot 2022-10-21 at 09 55 20

Merging to master. Thank you, @LuciferYang and @cloud-fan @HyukjinKwon for review.

@MaxGekk MaxGekk closed this in 7ab8b8e Oct 21, 2022
@LuciferYang
Copy link
Contributor Author

Thanks @MaxGekk @cloud-fan @HyukjinKwon and @wangyum

@srowen
Copy link
Member

srowen commented Oct 23, 2022

@LuciferYang and everyone, we need to port this back to 3.3 and 3.2 right? b/c it will affect those branches, which do not pin Java 8. For example I think this backport is failing with the same issue: https://github.com/bjornjorgensen/spark/actions/runs/3304235420/jobs/5455772005

("2021-12-05T22:00:00", "Europe/Moscow") -> ("2021-12-06T00:00:00", "Asia/Yekaterinburg"),
("2021-12-06T00:01:02.123456", "Asia/Yekaterinburg") ->
("2021-12-05T20:01:02.123456", "Europe/Amsterdam"),
("2021-12-05T20:01:02.123456", "Europe/Brussels"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LuciferYang mind creating a cherry-pick to other branches too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do this today @srowen @HyukjinKwon

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LuciferYang added a commit to LuciferYang/spark that referenced this pull request Oct 24, 2022
…atest Java 8/11/17

The main change of this pr as follows:

- Replace `Antarctica/Vostok` to `Asia/Urumqi` in Spark code
- Replace `Europe/Amsterdam` to `Europe/Brussels` in Spark code
- Regenerate `gregorian-julian-rebase-micros.json` using generate 'gregorian-julian-rebase-micros.json' in `RebaseDateTimeSuite` with Java 8u352
- Regenerate `julian-gregorian-rebase-micros.json` using generate 'julian-gregorian-rebase-micros.json' in RebaseDateTimeSuite with Java 8u352
- Revert change of SPARK-40846

Make GA run successfully with the latest Java 8/11/17:

- Java 8u352
- Java 11.0.17
- Java 17.0.5

No

- Pass GitHub Actions
- Manual test: the following commands can test pass with Java 8u345, 8u352, 11.0.16, 11.0.17, 17.0.4 and 17.0.5
   - `build/sbt "catalyst/test"`
   - `build/sbt "sql/testOnly *SQLQueryTestSuite -- -t \"timestamp-ltz.sql\""`
   - `build/sbt "sql/testOnly *SQLQueryTestSuite -- -t \"timestamp-ntz.sql\""`

Closes apache#38317 from LuciferYang/SPARK-40851.

Lead-authored-by: yangjie01 <[email protected]>
Co-authored-by: YangJie <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
LuciferYang added a commit to LuciferYang/spark that referenced this pull request Oct 24, 2022
…atest Java 8/11/17

The main change of this pr as follows:

- Replace `Antarctica/Vostok` to `Asia/Urumqi` in Spark code
- Replace `Europe/Amsterdam` to `Europe/Brussels` in Spark code
- Regenerate `gregorian-julian-rebase-micros.json` using generate 'gregorian-julian-rebase-micros.json' in `RebaseDateTimeSuite` with Java 8u352
- Regenerate `julian-gregorian-rebase-micros.json` using generate 'julian-gregorian-rebase-micros.json' in RebaseDateTimeSuite with Java 8u352
- Revert change of SPARK-40846

Make GA run successfully with the latest Java 8/11/17:

- Java 8u352
- Java 11.0.17
- Java 17.0.5

No

- Pass GitHub Actions
- Manual test: the following commands can test pass with Java 8u345, 8u352, 11.0.16, 11.0.17, 17.0.4 and 17.0.5
   - `build/sbt "catalyst/test"`
   - `build/sbt "sql/testOnly *SQLQueryTestSuite -- -t \"timestamp-ltz.sql\""`
   - `build/sbt "sql/testOnly *SQLQueryTestSuite -- -t \"timestamp-ntz.sql\""`

Closes apache#38317 from LuciferYang/SPARK-40851.

Lead-authored-by: yangjie01 <[email protected]>
Co-authored-by: YangJie <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
…atest Java 8/11/17

### What changes were proposed in this pull request?
The main change of this pr as follows:

- Replace `Antarctica/Vostok` to `Asia/Urumqi` in Spark code
- Replace `Europe/Amsterdam` to `Europe/Brussels` in Spark code
- Regenerate `gregorian-julian-rebase-micros.json` using generate 'gregorian-julian-rebase-micros.json' in `RebaseDateTimeSuite` with Java 8u352
- Regenerate `julian-gregorian-rebase-micros.json` using generate 'julian-gregorian-rebase-micros.json' in RebaseDateTimeSuite with Java 8u352
- Revert change of SPARK-40846

### Why are the changes needed?
Make GA run successfully with the latest Java 8/11/17:

- Java 8u352
- Java 11.0.17
- Java 17.0.5

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?

- Pass GitHub Actions
- Manual test: the following commands can test pass with Java 8u345, 8u352, 11.0.16, 11.0.17, 17.0.4 and 17.0.5
   - `build/sbt "catalyst/test"`
   - `build/sbt "sql/testOnly *SQLQueryTestSuite -- -t \"timestamp-ltz.sql\""`
   - `build/sbt "sql/testOnly *SQLQueryTestSuite -- -t \"timestamp-ntz.sql\""`

Closes apache#38317 from LuciferYang/SPARK-40851.

Lead-authored-by: yangjie01 <[email protected]>
Co-authored-by: YangJie <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants