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 EnforceDistribution into datafusion-physical-optimizer crate #14186

Closed
Tracked by #11502
alamb opened this issue Jan 18, 2025 · 2 comments · Fixed by #14190
Closed
Tracked by #11502

Move EnforceDistribution into datafusion-physical-optimizer crate #14186

alamb opened this issue Jan 18, 2025 · 2 comments · Fixed by #14190
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@alamb
Copy link
Contributor

alamb commented Jan 18, 2025

Is your feature request related to a problem or challenge?

Historically DataFusion was one (very) large crate datafusion, and as it grew bigger we extracted various functionality into separate crates. This leads to both faster compile times (as the crates can be compiled in parallel) as well easier to navigate code (as the crates force a cleaner dependency separation)

One project we have not yet completed is to extract the physical optimizer passes out #11502

Describe the solution you'd like

Extract the EnforceDistribution from the datafusion core crate to the datafusion-physical-optimizer crate

Describe alternatives you've considered

Move the code

Notes that due to dependencies (e.g. on SessionContext or functions), you may have to move the tests into the core_integration tests here:

Additional context

Here are some example PRs

I think this is a good first issue as it is mostly mechanical, has several good examples, and does not require deep internals knowledge

@alamb alamb added enhancement New feature or request good first issue Good for newcomers labels Jan 18, 2025
@logan-keede
Copy link
Contributor

take

@alamb
Copy link
Contributor Author

alamb commented Jan 18, 2025

We are gearing up for a refactoring party 🏗 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants