Skip to content
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

MINOR: add optimizer struct #2616

Merged
merged 1 commit into from
May 25, 2022
Merged

Conversation

jackwener
Copy link
Member

Which issue does this PR close?

Closes #.

What changes are included in this PR?

Add the Optimizer struct.

Are there any user-facing changes?

None

Does this PR break compatibility with Ballista?

No

@github-actions github-actions bot added the datafusion Changes in the datafusion crate label May 25, 2022
@jackwener jackwener force-pushed the refactor_optimzer branch 2 times, most recently from 7afb925 to 77049a2 Compare May 25, 2022 15:44
pub fn optimize<F>(
&self,
plan: &LogicalPlan,
execution_props: &mut ExecutionProps,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to your changes but I am trying to get rid of the use of ExecutionProps here - #2614

Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jackwener. This looks like a good change to me and helps towards #2599 as well

@andygrove andygrove changed the title refactor: add optimzer struct MINOR: add optimizer struct May 25, 2022
@@ -1189,7 +1190,7 @@ pub struct SessionState {
/// Uuid for the session
pub session_id: String,
/// Responsible for optimizing a logical plan
pub optimizers: Vec<Arc<dyn OptimizerRule + Send + Sync>>,
pub optimizer: Optimizer,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a nice improvement 👍

@andygrove andygrove merged commit 894be67 into apache:master May 25, 2022
@jackwener jackwener deleted the refactor_optimzer branch May 26, 2022 02:00
gandronchik pushed a commit to cube-js/arrow-datafusion that referenced this pull request Aug 30, 2022
gandronchik pushed a commit to cube-js/arrow-datafusion that referenced this pull request Aug 31, 2022
gandronchik pushed a commit to cube-js/arrow-datafusion that referenced this pull request Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datafusion Changes in the datafusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants