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.
We ran into a situation where we ended up with the expression
select get_field(named_struct('f', col, 'f2' other_col), 'f') from originalbecause it started as a queryselect get_field(view_col, 'f') from t_originalwheretis a viewselect named_struct('f', col, 'f2' other_col) as view_col from t_original.It would be nice to simplify this away, to
colin this case.