8000 chore: test fix. by Genesis929 · Pull Request #1121 · googleapis/python-bigquery-dataframes · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@Genesis929
Copy link
Collaborator

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Oct 29, 2024
@Genesis929 Genesis929 marked this pull request as ready for review October 29, 2024 22:29
@Genesis929 Genesis929 requested review from a team as code owners October 29, 2024 22:29
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. label Oct 29, 2024
@Genesis929 Genesis929 requested a review from shobsi October 29, 2024 22:30
@Genesis929 Genesis929 added the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 29, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Oct 29, 2024
def test_read_gbq_on_linked_dataset_warns(session, source_table):
with warnings.catch_warnings(record=True) as warned:
session.read_gbq(source_table)
session.read_gbq(source_table, use_cache=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we know why a cached read will trigger one extra warning?

Copy link
Collaborator Author
@Genesis929 Genesis929 Oct 29, 2024

Choose a reason for hiding this comment

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

If a table is read multiple times in the same session, there will be warning messages except for the first read. And there are two tests that include step to read this table, most likely in the same session. That I think is the cause.

Check b/375664942 for details.

@Genesis929 Genesis929 enabled auto-merge (squash) October 29, 2024 23:19
@Genesis929 Genesis929 merged commit 2d3fd4b into main Oct 29, 2024
@Genesis929 Genesis929 deleted the warning_test_fix branch October 29, 2024 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0