jayzhan211 commented on issue #9637:
URL: 
https://github.com/apache/arrow-datafusion/issues/9637#issuecomment-2002346087

   @alamb I think being able to skip failed rules is the main challenge to 
rewriting the plan with ownership
   
   
https://github.com/apache/arrow-datafusion/blob/37253e57beb25f0f1a4412b75421a489c2cb3c6a/datafusion/optimizer/src/optimizer.rs#L325
   
   We need to restore the original plan if the rewrite fails at some point, 
however, the old plan is consumed and we lose ownership. Giving up ownership 
too early is not a good idea if we need to restore the original plan.


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

Reply via email to