Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: revised create_partitioned_table sample #1447

Merged
merged 2 commits into from Oct 5, 2023

Conversation

thejaredchapman
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)

Towards #790 馃

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery API. samples Issues that are directly related to samples. size: m Pull request size is medium. and removed size: s Pull request size is small. labels Dec 20, 2022
@thejaredchapman thejaredchapman marked this pull request as ready for review December 21, 2022 17:03
@thejaredchapman thejaredchapman requested a review from a team December 21, 2022 17:03
@thejaredchapman thejaredchapman requested review from a team as code owners December 21, 2022 17:03
@snippet-bot
Copy link

snippet-bot bot commented Dec 21, 2022

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@tswast
Copy link
Contributor

tswast commented Jan 9, 2023

Kokoro test failures are real ones in this case:

nox > Running session mypy_samples
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/mypy_samples
nox > python -m pip install -e '.[all]'
nox > python -m pip install pytest
nox > python -m pip install -r /tmpfs/src/github/python-bigquery/samples/geography/requirements.txt
nox > python -m pip install -r /tmpfs/src/github/python-bigquery/samples/snippets/requirements.txt
nox > python -m pip install -r /tmpfs/src/github/python-bigquery/samples/magics/requirements.txt
nox > python -m pip install mypy==0.910
nox > python -m pip install types-mock types-pytz types-protobuf types-python-dateutil types-requests types-setuptools
nox > python -m pip install typing-extensions
nox > mypy --config-file /tmpfs/src/github/python-bigquery/samples/mypy.ini --no-incremental samples/
samples/snippets/create_partitioned_table_test.py:32: error: Name "client" is not defined
samples/snippets/create_partitioned_table_test.py:32: error: Name "to_delete" is not defined
samples/snippets/create_partitioned_table_test.py:34: error: Name "table" is not defined
samples/snippets/create_partitioned_table_test.py:35: error: Name "table" is not defined
samples/snippets/create_partitioned_table_test.py:36: error: Name "table" is not defined
Found 5 errors in 1 file (checked 222 source files)
nox > Command mypy --config-file /tmpfs/src/github/python-bigquery/samples/mypy.ini --no-incremental samples/ failed with exit code 1
nox > Session mypy_samples failed.

Need to update the sample & tests to use the new fixtures.

@meredithslota meredithslota requested a review from a team as a code owner July 28, 2023 04:48
@tswast tswast force-pushed the issue790-bigquery_create_table_partitioned branch from af420a5 to ead525a Compare October 5, 2023 17:29
@tswast tswast enabled auto-merge (squash) October 5, 2023 17:30
@tswast tswast changed the title docs: Revised create_partitioned_table sample docs: revised create_partitioned_table sample Oct 5, 2023
@tswast tswast merged commit 40ba859 into main Oct 5, 2023
19 of 20 checks passed
@tswast tswast deleted the issue790-bigquery_create_table_partitioned branch October 5, 2023 17:57
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 API. samples Issues that are directly related to samples. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants