xudong963 commented on pull request #1183: URL: https://github.com/apache/arrow-datafusion/pull/1183#issuecomment-954739625
> An argument against avoiding to optimize it twice in different query executions is this example: > > ```rust > let x = df.collect(); > // change execution context e.g. change enabled optimizations, parallelism, etc. > ctx.state... > // evaluate dataframe with collect or similar method > let y = df.collect(); > ``` > > Now - when running the optimizer for the new execution "again" for the DataFrame will optimize it based on the provided configurations. But if we would avoid it, we don't run the optimizer again, but instead have it optimized using the previous configuration, Thanks! @Dandandan. Happy weekend, happy coding! 🎉 -- 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]
