Skip to content

Simplify get_field(named_struct('f', 1), 'f') => 1 #22240

@adriangb

Description

@adriangb

We ran into a situation where we ended up with the expression select get_field(named_struct('f', col, 'f2' other_col), 'f') from original because it started as a query select get_field(view_col, 'f') from t_original where t is a view select named_struct('f', col, 'f2' other_col) as view_col from t_original.

It would be nice to simplify this away, to col in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions