-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUGFIX] Patch inconsistent ordering within GCP test asserts #7130
Changes from all commits
cb20263
c64e5a4
0e91765
8c0475e
34cec6e
5427d01
89c3002
eb47016
fceeaa5
a505651
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -256,7 +256,14 @@ | |
{ | ||
"title": "basic_negative_test_with_timestamps_other_sql", | ||
"exact_match_out": false, | ||
"suppress_test_for": ["pandas", "spark", "postgresql", "mssql", "mysql"], | ||
"suppress_test_for": [ | ||
"pandas", | ||
"spark", | ||
"postgresql", | ||
"mssql", | ||
"mysql", | ||
"bigquery" | ||
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.
|
||
], | ||
"out": { | ||
"unexpected_index_list": [{"ts": "1970-01-01 12:00:01", "pk_index": 0}, {"ts": "2001-01-01 12:00:01", "pk_index": 9}], | ||
"success": false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -300,7 +300,12 @@ | |
}, | ||
"out": { | ||
"success": false, | ||
"unexpected_index_list": [0], | ||
"unexpected_index_list": [ | ||
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. Updated so that the output includes ID/PK |
||
{ | ||
"pk_index": 0, | ||
"dates": "2018-01-01" | ||
} | ||
], | ||
"unexpected_list": ["2018-01-01"] | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,9 +125,6 @@ def pytest_generate_tests(metafunc): # noqa C901 - 35 | |
validator_with_data.active_batch_data, | ||
SqlAlchemyBatchData, | ||
): | ||
# Call out supported dialects | ||
if "pandas_v3_api" in only_for: | ||
generate_test = True | ||
if "sqlalchemy" in only_for: | ||
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. This was a bug. The |
||
generate_test = True | ||
elif ( | ||
|
@@ -208,6 +205,9 @@ def pytest_generate_tests(metafunc): # noqa C901 - 35 | |
validator_with_data.active_batch_data, | ||
PandasBatchData, | ||
): | ||
# Call out supported dialects | ||
if "pandas_v3_api" in only_for: | ||
generate_test = True | ||
major, minor, *_ = pd.__version__.split(".") | ||
if "pandas" in only_for: | ||
generate_test = True | ||
|
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.
bigquery
does not allow for comparison betweendatetime