-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-31526][SQL][TESTS][FOLLOWUP] Make ExpressionInfo independent from local time zone #28538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@maropu @gengliangwang @cloud-fan @HyukjinKwon Please, review this PR. |
HyukjinKwon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Test build #122661 has finished for PR 28538 at commit
|
|
The failure in |
|
jenkins, retest this, please |
|
Test build #122671 has finished for PR 28538 at commit
|
|
jenkins, retest this, please |
|
Test build #122692 has finished for PR 28538 at commit
|
|
jenkins, retest this, please |
|
hm, pretty flaky... |
|
Test build #122702 has finished for PR 28538 at commit
|
|
jenkins, retest this, please |
|
Test build #122720 has finished for PR 28538 at commit
|
… Locale.US in tests by default ### What changes were proposed in this pull request? Set default time zone and locale in the default constructor of `SparkFunSuite`: - Default time zone to `America/Los_Angeles` - Default locale to `Locale.US` ### Why are the changes needed? 1. To deduplicate code by moving common time zone and locale settings to one place SparkFunSuite 2. To have the same default time zone and locale in all tests. This should prevent errors like #28538 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? by running all affected test suites Closes #28548 from MaxGekk/timezone-settings-SparkFunSuite. Authored-by: Max Gekk <[email protected]> Signed-off-by: Wenchen Fan <[email protected]> (cherry picked from commit 5539ecf) Signed-off-by: Wenchen Fan <[email protected]>
… Locale.US in tests by default ### What changes were proposed in this pull request? Set default time zone and locale in the default constructor of `SparkFunSuite`: - Default time zone to `America/Los_Angeles` - Default locale to `Locale.US` ### Why are the changes needed? 1. To deduplicate code by moving common time zone and locale settings to one place SparkFunSuite 2. To have the same default time zone and locale in all tests. This should prevent errors like #28538 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? by running all affected test suites Closes #28548 from MaxGekk/timezone-settings-SparkFunSuite. Authored-by: Max Gekk <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
|
Since SPARK-31725 improves |
What changes were proposed in this pull request?
Extend QueryTest instead of SparkFunSuite in ExpressionInfoSuite as in SQLQuerySuite.
Why are the changes needed?
After the changes #28308, the moved tests from SQLQuerySuite became dependent from local time zone settings. And tests from ExpressionInfoSuite fail if they run not in the
America/Los_Angelestime zone:Does this PR introduce any user-facing change?
No
How was this patch tested?
By running the modified test suite locally in the
Europe/Moscowtime zone: