fix: avoid 403 from to_gbq when table has policyTags#356
Merged
tswast merged 3 commits intogoogleapis:masterfrom Mar 30, 2021
Merged
fix: avoid 403 from to_gbq when table has policyTags#356tswast merged 3 commits intogoogleapis:masterfrom
tswast merged 3 commits intogoogleapis:masterfrom
Conversation
tswast
commented
Mar 29, 2021
| @@ -0,0 +1,95 @@ | |||
| """Module for checking dependency versions and supported features.""" | |||
Contributor
Author
There was a problem hiding this comment.
I pulled this out of gbq.py, because load.py also needs some of this logic now.
tswast
commented
Mar 29, 2021
| yield remaining_rows | ||
| client.load_table_from_file( | ||
| chunk_buffer, | ||
| if FEATURES.bigquery_has_from_dataframe_with_csv: |
Contributor
Author
There was a problem hiding this comment.
Not strictly necessary (just the "omit policyTags" logic was), but I thought this might be a good opportunity to use more logic from google-cloud-bigquery, per #339
The CSV encoding in google-cloud-bigquery is still relatively new, so I didn't want to bump our minimum google-cloud-bigquery versions yet. Discussion: https://github.com/pydata/pandas-gbq/issues/357
Contributor
Author
|
conda-3.7 test failures: The |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to googleapis/python-bigquery#557
nox -s blacken lintdocs/source/changelog.rstentry