Documentation on BigQuery query parameterization was wrong, but also with the existing implementation of the query method, parameterization was not possible.
Updates are made to enable parameterization of queries using the bigquery client, and documentation is updated to reflect correct usage.
BigQuery python query parameterization requires the use of client.query() rather than cursor.query()
938 significantly refactors the bigquery connector query method, although not in a way that fixes the underlying issue here. This PR will likely need to be redone on top of the state of the code in that PR.
Addresses #929
Documentation on BigQuery query parameterization was wrong, but also with the existing implementation of the query method, parameterization was not possible.
Updates are made to enable parameterization of queries using the bigquery client, and documentation is updated to reflect correct usage.
BigQuery python query parameterization requires the use of
client.query()
rather thancursor.query()
See documentation here: https://cloud.google.com/bigquery/docs/parameterized-queries