-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: add user-agent delegation telemetry for pandas-gbq #17704
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
Closed
+247
−16
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
67a61c6
fix(bigquery): harden test fixtures and prevent socket leaks
shuoweil f640ded
feat(bigquery): add pandas-gbq capability helper
shuoweil d8df911
Update packages/google-cloud-bigquery/google/cloud/bigquery/dbapi/con…
shuoweil 1600294
Update packages/google-cloud-bigquery/google/cloud/bigquery/_versions…
shuoweil 07539ae
Update packages/google-cloud-bigquery/google/cloud/bigquery/_versions…
shuoweil 16ad860
style: fix line length in _versions_helpers.py
shuoweil 07a0f85
feat(bigquery): inject user-agent telemetry for pandas-gbq delegation
shuoweil 623276b
fix(bigquery): remove unexercised try-except in Connection.close
shuoweil 9023a7b
chore: sync PR 1 fixes into PR 3
shuoweil 9222108
Merge branch 'main' into shuowei-gbq-delegation-telemetry-mvp
shuoweil ee9ceb9
chore: sync with main and PR 2 version helper
shuoweil 5d80f9a
feat(bigquery): harden telemetry injection and add comprehensive tests
shuoweil 5b7db9e
Merge branch 'main' into shuowei-gbq-delegation-telemetry-mvp
shuoweil 0ca751c
style(bigquery): chain context managers and format AAA in test_table
shuoweil 482bb54
style(bigquery): apply black formatting to test_table
shuoweil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
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.
We haven't started the pandas-gbq migration, right? My concern is that, if we start setting the user agents to be pandas-gbq without actually using that package, then our metrics will be inaccurate.
Should we hold off on this change until we start re-directing traffics to pandas-gbq?
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.
Good catch, @sycai! You're completely right.
While this block is currently guarded behind
_versions_helpers.PANDAS_GBQ_VERSIONS.is_delegation_supported(which checkspandas_gbq._internal_delegation_api_version >= 1.0.0and currently evaluates toFalse),RowIterator.to_dataframe()ingoogle-cloud-bigqueryhas not yet switched over to delegating DataFrame conversion topandas-gbq.I will close this RP for now. We will reimplement this once we have other features ready.