Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

QueryJob class break flow after upgrade to 3.21.0 #1940

Description

@DLT1412

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

Activity

  1. assigned and unassigned on Jun 3, 2024
  2. tswast commented on Jun 3, 2024

    @tswast
    Contributor

    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?

  3. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p3Desirable enhancement or fix. May not be included in next release.
    on Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions