googleapis/python-bigquery

QueryJob class break flow after upgrade to 3.21.0

DLT1412 opened this issue · 1 comments

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

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?