Allow enabling/disabling the storage API on a per-connection basis #1920
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
In #16, support was added for the BigQuery storage API in the form of a
bqstorage_client
which is passed to or created byconnect()
. Yet there is no way, other than installing or uninstalling the storage API itself, to toggle whether the storage API is enabled/disabled.Since use of the storage API does affect pricing, it would be preferable to enable or disable on a per-connection basis, perhaps as a
use_storage_api: bool
parameter onconnect()
. This way, callers could choose at will whether to use the storage API without having to change the Python environment the code is running in.As a hack to workaround this issue, I attempted calling
connect
passing a normalClient
object rather than aBigQueryReadClient
in thebqstorage_client
parameter, but this does not create a functioning usable connection.The text was updated successfully, but these errors were encountered: