in_ Operator does not work for column type NUMERIC #1126
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.
The command IN UNNEST does not work for columns with type NUMERIC the same way it works with INT64 or FLOAT64.
The in_ operator on python-bigquery-sqlalchemy uses the IN UNNEST(@PARAM_1) syntax. Therefore it is unable to run an in_ operation for columns with the NUMERIC type.
Note: IN (@PARAM_1) works well with NUMERIC. And when compiling with compile_kwargs "literal_binds"=True it uses that syntax. But for normal compile it uses IN UNNEST.
Environment details
sqlalchemy-bigquery
version: 1.11.0Steps to reproduce
Code example
Seeing as the syntax
actually works it is counter intuitive seeing it doesn't work with sqlalchame-bigquery.
Thanks!
The text was updated successfully, but these errors were encountered: