You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BigQuery - remove uses of jobs.query method. #1588
The jobs.query method should not be used in the client libraries.
Reasons: the query can time out, but it still might actually run, costing money & resources. Unless you poll for the results (not obvious you have to do this) you won't see them.
Also, the jobs/query API does not accept a job ID. This means that a retry on failure could result in duplicate queries being run, causing extra resource usage & charges.
Proposal:
Remove all uses of jobs/query. Instead use jobs/insert.
Deprecate BigQuery.query(QueryRequest). Providing a synchronous method without an explicit job ID is dangerous for the reasons listed above. Alternatively, we could generate a job ID client-side, which would protect against duplicate queries from retries from the client libraries.
Add a method BigQuery.query(QueryRequest, JobId) so users can explicitly provide a job ID for safe retries (even against program crashes if they save the job ID somewhere -- important for really big/expensive queries).
Activity
66 remaining items
chore: pin versions of dependencies for compatibility with Python 3.6 (…
chore(deps): update dependency org.apache.maven.plugins:maven-javadoc…
chore: pin versions of dependencies for compatibility with Python 3.6 (…
deps: update dependency com.google.cloud:google-cloud-spanner-bom to …
chore: pin versions of dependencies for compatibility with Python 3.6 (…
chore: reformat code using new formatter (#1588)
chore: pin versions of dependencies for compatibility with Python 3.6 (…
chore: reformat code using new formatter (#1588)
chore: pin versions of dependencies for compatibility with Python 3.6 (…
build(deps): bump requests from 2.27.1 to 2.31.0 in /.kokoro (#1588)
chore: pin versions of dependencies for compatibility with Python 3.6 (…
build(deps): bump requests from 2.27.1 to 2.31.0 in /.kokoro (#1588)
chore: pin versions of dependencies for compatibility with Python 3.6 (…
fix: Modify ConvertExceptionCallable to retry on Goaway (googleapis#1588
chore(main): release 2.19.0 (googleapis#1615)