nuno-faria commented on issue #28003: URL: https://github.com/apache/datafusion/issues/28003#issuecomment-7422517731
> It is not clear to me if prepared statements would actually run the exact same query plan, or if they would want to make a copy of at least some of the plan to fill in the bound parameter values and try and reoptimize (to do file pruning, for example) I think it would be easier to run a copy, since e.g. the DataSourceExec is going to be different depending on the predicates. However, in my experience most nodes are reusable as is (with_new_children) or with reset_state(). So ideally there would be a `ExecutionPlan::replace_placeholders` implemented by each node that would handle this. -- 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]
