You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "adriangb (via GitHub)" <gi...@apache.org> on 2026/05/16 07:09:58 UTC

[I] Simplify `get_field(named_struct('f', 1), 'f')` => `1` [datafusion]

adriangb opened a new issue, #22240:
URL: https://github.com/apache/datafusion/issues/22240

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Simplify `get_field(named_struct('f', 1), 'f')` => `1` [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on issue #22240:
URL: https://github.com/apache/datafusion/issues/22240#issuecomment-5673391192

   Fixed by https://github.com/apache/datafusion/pull/22239


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] Simplify `get_field(named_struct('f', 1), 'f')` => `1` [datafusion]

Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb closed issue #22240: Simplify `get_field(named_struct('f', 1), 'f')` => `1`
URL: https://github.com/apache/datafusion/issues/22240


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org