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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: add possibility to pass labels #320

Closed
nicoa opened this issue Jun 5, 2020 · 2 comments
Closed

ENH: add possibility to pass labels #320

nicoa opened this issue Jun 5, 2020 · 2 comments

Comments

@nicoa
Copy link
Contributor

nicoa commented Jun 5, 2020

As far as I see pandas-gbq currently doesn't support passing labels.

The underlying google-cloud-bigquery package technically supports this both for queries as well as for tables from what I can see for example here.

Would this be an option for you to implement / support? Or is it already supported and I'm not finding it in the documentation?

Thanks for your support!

@tswast
Copy link
Collaborator

tswast commented Jun 5, 2020

For queries, you should be able to fall back to the REST API (https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#JobConfiguration.FIELDS.labels) by populating the configuration argument.

https://github.com/pydata/pandas-gbq/blob/d251db03b159447331ac9ae63e13d295d75bad70/tests/system/test_gbq.py#L595-L631

For load jobs, #313 (comment) is currently open for this support.

@nicoa
Copy link
Contributor Author

nicoa commented Jun 8, 2020

Great, thanks! Unfortunately we rely mainly on to_gbq, but good to know this is already opened.

Will close this for now until experiencing problems.

Thanks for your support! :-)

@nicoa nicoa closed this as completed Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants