-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any reason why logical plan is optimized twice? #705
Comments
probably an oversight? the optimize in sql method does look like redundant. |
I think it's not an oversight: |
That's a good point. Perhaps the better structure would be to push optimize into query evaluation/materialization methods like |
I like that plan |
I wonder if this ticket is tracking anything useful or if the question has been answered and we can close the ticket? |
i think we already got the answer to the question. |
Hello, I am just curious why the logical plan is being optimized twice.
First, it was optimized here:
https://github.com/apache/arrow-datafusion/blob/master/datafusion/src/execution/context.rs#L205
Then it was optimized again when collecting result
https://github.com/apache/arrow-datafusion/blob/master/datafusion/src/execution/dataframe_impl.rs#L147
The text was updated successfully, but these errors were encountered: