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

Move LogicalPlan tree_node module #9995

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Apr 8, 2024

Which issue does this PR close?

Part of #9994

Rationale for this change

The code is hard to find and hard to document

What changes are included in this PR?

Move the LogicalPlan tree node code out of expr and into LogicalPlan:

	renamed:    datafusion/expr/src/tree_node/plan.rs -> datafusion/expr/src/logical_plan/tree_node.rs
	renamed:    datafusion/expr/src/tree_node/expr.rs -> datafusion/expr/src/tree_node.rs

Are these changes tested?

Yes, by existing tests

Are there any user-facing changes?

No

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Apr 8, 2024

//! Tree node implementation for logical expr and logical plan

pub mod expr;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It makes little sense to arrange the LogicalPlan tree node in datafuison/expr/src rather than datafusion/expr/src/logical_plan

Copy link
Contributor Author

@alamb alamb Apr 8, 2024

Choose a reason for hiding this comment

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

This is also consistent with how physical plan and physical expr are organized

https://github.com/search?q=repo%3Aapache%2Farrow-datafusion%20tree_node.rs&type=code

@alamb alamb requested a review from jackwener April 8, 2024 12:38
Copy link
Member

@jackwener jackwener left a comment

Choose a reason for hiding this comment

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

Make sense to me, thanks @alamb

@jackwener jackwener merged commit 86ad8a5 into apache:main Apr 8, 2024
25 checks passed
@alamb
Copy link
Contributor Author

alamb commented Apr 8, 2024

Thank you @jackwener 🙏

@alamb alamb deleted the alamb/tree_node_consolidate1 branch April 8, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants