edmondop commented on issue #10102:
URL: https://github.com/apache/datafusion/issues/10102#issuecomment-2080824673

   > > How does the selection happens ?
   > 
   > I think you can select with something like `my_struct_col['foo']` which 
returns the 'foo' field.
   > 
   > However now re-reading this ticket, I think it would be possible to create 
a user defined function like `COLUMN` by Implemening 
[`return_type_from_exprs`](https://docs.rs/datafusion/latest/datafusion/logical_expr/trait.ScalarUDFImpl.html#method.return_type_from_exprs)
 to 🤔
   
   What I was trying to say is that looking at that UDF isn't clear for me how 
the other fields are dropped. It seems that Datafusion performs an intersection 
between the field names returned by the return type and the ones returned by 
array_struct ? 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to