Skip to content

Conversation

@GarrettWu
Copy link
Contributor

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> 🦕

@GarrettWu GarrettWu requested review from shuoweil and tswast February 2, 2026 22:50
@GarrettWu GarrettWu self-assigned this Feb 2, 2026
@GarrettWu GarrettWu requested review from a team as code owners February 2, 2026 22:50
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Feb 2, 2026

@mock.patch("bigframes.bigquery._operations.io._get_table_metadata")
def test_load_data(get_table_metadata_mock, mock_session):
bigframes.bigquery._operations.io.load_data(
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest adding a doctest to each test case to better illustrate the test's purpose.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean a comment for the tests or doctests to the function?

If the former case. These tests are simple and self-explanatory.

Copy link
Contributor

Choose a reason for hiding this comment

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

doctests to the function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The web link in the doc illustrates what the function does. https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/load-statements

For this DDL, a table will be created. In doctest it can't clean that table... Which makes doctest impossible.

Generally doctests have problems, usually causing failures and hard to debug. We may want to find better ways.

@GarrettWu GarrettWu added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 3, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 3, 2026
@GarrettWu GarrettWu requested a review from shuoweil February 3, 2026 19:24
@GarrettWu GarrettWu added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 3, 2026
@bigframes-bot bigframes-bot removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 3, 2026
@shuoweil shuoweil merged commit 4b0f13b into main Feb 3, 2026
26 checks passed
@shuoweil shuoweil deleted the garrettwu-load branch February 3, 2026 22: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: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants