BigQuery's unnest function implementation overrides and breaks this function for other dialects #882
Labels
api: bigquery
Issues related to the googleapis/python-bigquery-sqlalchemy 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.
If bigquery is installed, the
unnest
function (defined here) overrides theunnest
function for all dialects.In PostgreSQL usage of
unnest
is allowed with column identifiers (unnesting an array contained in a table column). But the global re-definition of unnest caused by bigquery makes code like thissa.func.unnest(some_column)
fail withTypeError: The argument to unnest must have an ARRAY type.
because, obviously, a column is not an array literal.In my case I really do need many dialects installed at the same time.
The text was updated successfully, but these errors were encountered: