Thanks to visit codestin.com
Credit goes to github.com

Skip to content

func.unnest loses type information #297

@jimfulton

Description

@jimfulton

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: bigqueryIssues related to the googleapis/python-bigquery-sqlalchemy API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions