BQ storage API is used inappropriately when executing query with @compiles
#1070
Labels
api: bigquery
Issues related to the googleapis/python-bigquery-sqlalchemy API.
My rough understanding is that connecting using
sqlalchemy-bigquery
creates two clients, one with and one without the BQ storage API enabled, and attempts to be "smart" about determining which queries should be executed using which client. There appears to be an issue with this logic when attempting to execute certain queries creating a view which use the@compiles
decorator from SQLAlchemy. See below for a specific example.Thanks in advance for your help!
Environment details
sqlalchemy-bigquery
version: 1.11.0google-cloud-bigquery-storage
version: 2.24.0google-cloud-bigquery
version: 3.21.0Steps to reproduce
See the code example below
conn.execute(obj)
where object usessqlalchemy.ext.compiler.compiles
to compile the executable query string.Code example
Stack trace (when
conn.execute(query)
is called)The text was updated successfully, but these errors were encountered: