- Notifications
You must be signed in to change notification settings - Fork321
Closed
Description
The ability to specify labels on created BigQuery jobs was supposedly added ingoogleapis/google-cloud-python#5654, but it doesn't work. There is also a comment in the documentation from that same PR referring to Client.update_job() which doesn't even exist.
Environment details
python --version
Python 3.7.3
pip freeze | grep google
google-api-core==1.24.1
google-auth==1.24.0
google-cloud-bigquery==2.6.2
google-cloud-bigtable==1.6.1
google-cloud-core==1.5.0
google-cloud-pubsub==2.2.0
google-cloud-storage==1.35.0
google-crc32c==1.1.0
google-resumable-media==1.2.0
googleapis-common-protos==1.52.0
grpc-google-iam-v1==0.12.3
Code example
job_config=bigquery.QueryJobConfig(labels={"app":"test"})query_job=client.query("SELECT 1",job_config=job_config)# no labels seen belowprint(query_job.labels)# try and get a job later, also no labelsjob=client.get_job(query_job.job_id)print(job.labels)