cetra3 commented on PR #26282:
URL: https://github.com/apache/datafusion/pull/26282#issuecomment-7148177921

   > The part of this that doesn't completely close for me is that how nested 
field access is handled is a combination of (1) the expression and (2) the data 
source. In other words, a Vortex file and a Parquet file are going to handle 
nested field access differently. So I don't see how a trait could define the 
behavior?
   
   This change asks the UDF what fields it needs to access, so you *can* adjust 
it depending on the field type, i.e, vortex vs variant.
   
   The main argument for this change was shredded variant, whereby there are 
*multiple* fields that you need to access within the variant struct for it to 
work correctly.  I don't see how vortex wouldn't work the same way.
   
   @alamb I did validate this locally with `datafusion-variant` but as it's a 
completely different repo it isn't in this PR.


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