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

QueryJob class break flow after upgrade to 3.21.0 #1940

Closed
DLT1412 opened this issue Jun 3, 2024 · 1 comment · Fixed by #1944
Closed

QueryJob class break flow after upgrade to 3.21.0 #1940

DLT1412 opened this issue Jun 3, 2024 · 1 comment · Fixed by #1944
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@DLT1412
Copy link

DLT1412 commented Jun 3, 2024

Affect version: >=3.21.0, <=3.23.1

Steps to reproduce

from google.cloud import bigquery
import uuid

client = bigquery.Client()
from google.cloud.bigquery import QueryJob
QueryJob(job_id=str(uuid.uuid4()), query="select 1", client=client).result() # return 404 error, work with version 3.20.1
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Jun 3, 2024
@Linchin Linchin assigned Linchin and unassigned obada-ab Jun 3, 2024
@tswast
Copy link
Contributor

tswast commented Jun 3, 2024

I suspect I broke this in #1900

As far as I know we never documented calling the QueryJob constructor directly, instead preferring folks call Client.query(), Client.query_and_wait() or Client.insert_job().

I'm curious why you are calling the constructor directly?

@Linchin Linchin added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p3 Desirable enhancement or fix. May not be included in next release. labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants