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.

Python bigquery_create_job sample is inconsistent with other code samples #1085

@tswast

Description

@tswast

The https://github.com/googleapis/python-bigquery/blob/main/samples/create_job.py code sample appears here: https://cloud.google.com/bigquery/docs/running-jobs#running_jobs_using_client_libraries

This sample requires two improvements:

  • That section is about any kind of job, not just queries. As such, it should use the create_job method instead of the more specific query method. There should be comments that it is recommended to use the corresponding method for query/copy/load/extract.
  • Remove job_id_prefix logic, as labels cover similar functionality and are recommended over custom job IDs.
  • Move the sample to the samples/snippets directory. Needs to be done in 2 separate PRs so that the existing samples in the docs don't 404.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.samplesIssues that are directly related to samples.type: docsImprovement to the documentation for an API.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions