-
Notifications
You must be signed in to change notification settings - Fork 125
test: prevents query cache reuse that seems to trigger dtypes test failure #557
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
Re: the Kokoro prerelease failure: Based on conversation in the pandas github issue tracker, the root cause of these failing tests appears to be that the pandas system is trying to store too large a number in an int32 memory location. The bug has been added to the pandas 1.5 milestone (pandas is currently at 1.5.0 release candidate stage) |
@@ -50,7 +50,7 @@ def test_large_results(random_dataset, method_under_test): | |||
total_amount, | |||
passenger_count, | |||
trip_distance | |||
FROM `bigquery-public-data.new_york_taxi_trips.tlc_green_trips_2014` | |||
FROM `bigquery-public-data.new_york.tlc_green_trips_2014` |
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.
Heh, I know the pain behind this change 🚕
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 but will switch to approval after confirmation that we don't also need to add a test that has UseQueryCache: True
@leahecole per our conversation, added a comment to the code to identify why the useQueryCache=False argument was added to this specific test to avoid issues with potentially cached and mismatched data. Please approve. Thanks. |
@leahecole would it be possible to get an approval on this? |
Fixes #545 |
This PR is intended to determine whether cached results are causing a test to fail.
NOTE: it includes a fix from another PR that was also causing tests to fail (i.e. the dataset name had changed so we need to point to the correct dataset).
Used to point to:
bigquery-public-data.new_york_taxi_trips.tlc_green_trips_2014
Now points to:
bigquery-public-data.new_york.tlc_green_trips_2014
Fixes #554 🦕