Unnest function in BigQuery SQLAlchemy plugin joins twice when selecting other columns #353
Labels
api: bigquery
Issues related to the googleapis/python-bigquery-sqlalchemy API.
priority: p1
Important issue which blocks shipping the next release. Will be fixed prior to next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
From a customer support request:
Using the UNNEST function generates a CROSS JOIN with a table to itself.
A minimal example is included below. The following Python code:
Generates this query:
I expect it to generate this query instead (note the different FROM clause):
The text was updated successfully, but these errors were encountered: