westonpace commented on issue #10181:
URL: https://github.com/apache/datafusion/issues/10181#issuecomment-2071008009

   > I think this can be controlled by the consumer -- for example if you are 
walking Exprs in lancedb, you can control when you transform 
Expr::GetStructField into ScalarUDF and depending on where you do your analysis 
you only have to check for one
   
   I agree (and thanks for the example).  This works for us.  All of our expr 
from the user start as `&str`.  However, if we were receiving `Expr` directly 
then it wouldn't work because we wouldn't know which approach the user used.  
This is not a problem for us, we aren't expecting the user to provide direct DF 
structs in any of our roadmap features, I'm just thinking through possibilities.
   
   > I think the idea is people might want to override Expr::GetStructFields 
semantics and they way they would do so is to rewrite it into a different 
function. I think this is especially compelling for supporting JSON/JSONB for 
example
   
   What's the motivation for doing this at the logical level instead of doing 
this as part of the conversion from logical to physical?


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