nuno-faria opened a new issue, #19608:
URL: https://github.com/apache/datafusion/issues/19608

   ### Is your feature request related to a problem or challenge?
   
   To create a `FilterExec` with a projection, we need to call `try_new` and 
then `with_projection`. The problem is that `compute_properties` is executed 
two times unnecessarily. Since this is relatively expensive, it could be 
avoided with a new function that creates the filter with the projection in one 
go.
   
   ### Describe the solution you'd like
   
   Some `pub fn try_new_with_properties(predicate: Arc<dyn PhysicalExpr>, 
input: Arc<dyn ExecutionPlan>, projection: Option<Vec<usize>>)` or similar. I 
would be happy to add this myself, if no one disagrees.
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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