Skip to content

func.unnest loses type information #297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jimfulton opened this issue Aug 25, 2021 · 0 comments · Fixed by #298
Closed

func.unnest loses type information #297

jimfulton opened this issue Aug 25, 2021 · 0 comments · Fixed by #298
Labels
api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API.

Comments

@jimfulton
Copy link
Contributor

Given a column expression with type ARRAY<T>, calling func.unnest(expr) should result in a column of type T, nit it results in NullType instead.

>>> am.c.objects.type
ARRAY(JSON())
>>> select(func.unnest(am.c.objects).alias('another_mock_objects').column).subquery().c.another_mock_objects.type
NullType()
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. label Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant