Request to use BASIC enum when calling tables.get() in BigQuery #34075#34249
Request to use BASIC enum when calling tables.get() in BigQuery #34075#34249tamannakakkar93 wants to merge 22 commits intoapache:masterfrom
Conversation
| @@ -788,6 +789,7 @@ def get_table(self, project_id, dataset_id, table_id): | |||
| """ | |||
| request = bigquery.BigqueryTablesGetRequest( | |||
There was a problem hiding this comment.
Please check
. This is defined by Beam.There was a problem hiding this comment.
@liferoad should I replace line 792 with it with view= _messages.enumfield() ?
There was a problem hiding this comment.
You need define view in BigqueryTablesGetRequest
There was a problem hiding this comment.
ack, added in commit 93a4501679f23699230906af5f339b64eec866b2
Try to use apache_beam.io.gcp.internal.clients.bigquery.bigquery_v2_messages.BigqueryTablesGetRequest.ViewValueValuesEnum not the string. |
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@beam.apache.org list. Thank you for your contributions. |
|
keep open |
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@beam.apache.org list. Thank you for your contributions. |
|
keep open
…On Sun, Oct 5, 2025 at 6:16 PM github-actions[bot] ***@***.***> wrote:
*github-actions[bot]* left a comment (apache/beam#34249)
<#34249 (comment)>
This pull request has been marked as stale due to 60 days of inactivity.
It will be closed in 1 week if no further activity occurs. If you think
that’s incorrect or this pull request requires a review, please simply
write any comment. If closed, you can revive the PR at any time and
@mention a reviewer or discuss it on the ***@***.*** list. Thank
you for your contributions.
—
Reply to this email directly, view it on GitHub
<#34249 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMJ65DJLJJPJBFMCKUNCGID3WEHKFAVCNFSM6AAAAABYY4QH7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNRZGAZTINJYGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Tamanna Kakkar
Technical Solutions Engineer-Big Data
|
|
This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@beam.apache.org list. Thank you for your contributions. |
|
This pull request has been closed due to lack of activity. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time. |
When calling BigQuery's tables.get method, today, we are retrieving FULL details (which is the default). However, this is expensive and is resulting in customers hitting Quota issues. BigQuery engineering team is open to relaxing this Quota if we retrieve using "BASIC" enum.
https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/get
beam/sdks/python/apache_beam/io/gcp/bigquery.py
Lines 902 to 903 in 9a1e7bf
table = bq.get_table(
table_ref.projectId, table_ref.datasetId, table_ref.tableId)
beam/sdks/python/apache_beam/io/gcp/bigquery_tools.py
Line 565 in 9a1e7bf
response = self.client.tables.Get(request)