Query compilation breaks using the literal_binds kwarg with an IN operator in the Query on SQLAlchemy 1.4 #252
Labels
api: bigquery
Issues related to the googleapis/python-bigquery-sqlalchemy API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
sqlalchemy-bigquery
version: 0.10.0sqlalchemy
version: 1.4.22Steps to reproduce
in_
ornotin_
parameter.compile()
method with{"literal_binds": True}
in the kwargs. This worked when running with SQLAlchemy version 1.3 and pybigquery version 0.5.0, but does not work with SA 1.4 and pybigquery 0.10.0.Code example
Stack trace
What we expect to see (From the Postgres running):
From the SQLAlchemy documentation (https://docs.sqlalchemy.org/en/14/faq/sqlexpressions.html#rendering-postcompile-parameters-as-bound-parameters) we expect this to work as setting literal_binds to True should implicitly set render_postcompile to True as well.
The text was updated successfully, but these errors were encountered: