-
Notifications
You must be signed in to change notification settings - Fork 241
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
[WIP] Move timezone check to each operator [databricks] #9482
Closed
res-life
wants to merge
42
commits into
NVIDIA:branch-23.12
from
res-life:timezone-check-per-operator
Closed
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
d8e77b2
Add test cases for timezone awarded operators
3f781a4
Move timezone check to each operator
d5a6d7a
Merge branch 23.12
b3fa3ee
Update
c31b2e3
debug
a7c8996
debug
2878c5c
Add timezone test mark
705f8b5
Minor update
882b751
Fix failed cmp case on Spark311; Restore a python import; minor changes
aec893c
Fix failure on Databricks
7f81644
Update test cases for Databricks
bcc1f5b
Update test cases for Databricks
505b72e
Fix delta lake test cases.
07942ea
Fix delta lake test cases.
3033bc3
Remove the skip logic when time zone is not UTC
a852455
Add time zone config to set non-UTC
0358cd4
Add fallback case for cast_test.py
f6ccadd
Add fallback case for cast_test.py
21d5a69
Add fallback case for cast_test.py
e2aa9da
Add fallback case for cast_test.py
9eab476
Update split_list
e231a80
Add fallback case for cast_test.py
71928a0
Add fallback case for cast_test.py
ca23932
Add fallback cases for cmp_test.py
ee60bea
Add fallback tests for json_test.py
firestarman d403c59
add non_utc fallback for parquet_write qa_select and window_function …
thirtiseven dd5ad0b
Add fallback tests for conditionals_test.py
winningsix 058e13e
Add fallback cases for collection_ops_test.py
fc3a678
add fallback tests for date_time_test
thirtiseven 938c649
clean up spark_session.py
thirtiseven befa39d
Add fallback tests for explain_test and csv_test
winningsix cf2c621
Update test case
c298d5f
update test case
09e772c
Add default value
f43a8f9
Remove useless is_tz_utc
5882cc3
Fix fallback cases
7a53dc2
Add bottom check for time zone; Fix ORC check
7bd9ef8
By default, ExecCheck do not check UTC time zone
9817c4e
For common expr like AttributeReference, just skip the UTC checking
f8505b7
For common expr like AttributeReference, just skip the UTC checking
fa1c84d
For common expr like AttributeReference, just skip the UTC checking
fbbbd5b
Update test cases
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
|
||
from asserts import assert_gpu_and_cpu_are_equal_collect | ||
from data_gen import * | ||
from marks import disable_timezone_test | ||
from spark_session import is_before_spark_320, is_jvm_charset_utf8 | ||
from pyspark.sql.types import * | ||
import pyspark.sql.functions as f | ||
|
@@ -230,6 +231,7 @@ def test_conditional_with_side_effects_case_when(data_gen): | |
conf = test_conf) | ||
|
||
@pytest.mark.parametrize('data_gen', [mk_str_gen('[a-z]{0,3}')], ids=idfn) | ||
@disable_timezone_test | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we have a follow on issue to enable/test sequence for all time zones? We don't support timestamps for sequence currently and there are a lot of tests that are failing/skipped for no good reason. |
||
def test_conditional_with_side_effects_sequence(data_gen): | ||
assert_gpu_and_cpu_are_equal_collect( | ||
lambda spark : unary_op_df(spark, data_gen).selectExpr( | ||
|
@@ -240,6 +242,7 @@ def test_conditional_with_side_effects_sequence(data_gen): | |
|
||
@pytest.mark.skipif(is_before_spark_320(), reason='Earlier versions of Spark cannot cast sequence to string') | ||
@pytest.mark.parametrize('data_gen', [mk_str_gen('[a-z]{0,3}')], ids=idfn) | ||
@disable_timezone_test | ||
def test_conditional_with_side_effects_sequence_cast(data_gen): | ||
assert_gpu_and_cpu_are_equal_collect( | ||
lambda spark : unary_op_df(spark, data_gen).selectExpr( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: Why two of these?
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.
done