BigQuery: refactor bigquery_query_params_*
code samples to pass query_parameters
to QueryJobConfig
constructor
#9596
Labels
api: bigquery
Issues related to the BigQuery API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
The code samples for using query parameters are a bit hard to follow because they create several temporary variables.
google-cloud-python/bigquery/docs/snippets.py
Lines 1868 to 1873 in 518931b
The code samples are still in
snippets.py
. Ideally these samples would be moved to thesamples/
directory.The code samples supply a
location
argument for queries, even though this can now be autodetected for queries in all regions.Describe the solution you'd like
A clear and concise description of what you want to happen.
bigquery_query_params_...
samples to thesamples/
directory.location
argument from thequery()
method in the moved code samplesquery_parameters
argument in the constructor toQueryJobConfig
(added in BigQuery: Add properties to job config constructors #6397).Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
N/A
Additional context
Add any other context or screenshots about the feature request here.
Reported by customer in internal issue 143862711.
The text was updated successfully, but these errors were encountered: