adriangb commented on PR #19234:
URL: https://github.com/apache/datafusion/pull/19234#issuecomment-3633416759

   > will have a better look later, on the quick look I think it makes sense. 
One thing i'm not sure is use of generics, it might be better to leave it as 
&dyn (especially with Tims ffi work). I don't think this is on critical path so 
it should not impact performance (a lot)
   > 
   > Would it be possible to keep it as dyn @adriangb ?
   
   Under the current design it's not, here's an example demonstrating the 
problem: 
https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=636bc71d4c8c5e8172e41bddef3b1160.
   
   Essentially with dynamic dispatch the trait cannot participate in the code 
flow, it can only handle being a "fallback" as it is now / cannot call back 
into tree recursion. I haven't found a way around that (other than using 
generics as I do here)
   


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