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

Add own modified version of Datafusion optimize_projections rule #25

Merged
merged 4 commits into from
Nov 29, 2024

Conversation

sgrebnov
Copy link

@sgrebnov sgrebnov commented Nov 26, 2024

🗣 Description

PR introduces a modified version of DataFusion's OptimizeProjections rule, updated to allow the DataFusion unparser to correctly convert the optimized plan to SQL. It also maintains a simple and readable query layout.

See DataFusion discussion for more details on motivation to create own modified version of the rule instead of modifying the original one (DF).

@sgrebnov sgrebnov marked this pull request as ready for review November 29, 2024 04:22
@sgrebnov sgrebnov changed the title Add own modified version of Datafusion optimize_projections rule Add own version of Datafusion optimize_projections optimizer rule Nov 29, 2024
@sgrebnov sgrebnov self-assigned this Nov 29, 2024
@sgrebnov sgrebnov force-pushed the sgrebnov/custom-optimize-projections-rule branch from 7243970 to df63d48 Compare November 29, 2024 04:28
@sgrebnov sgrebnov changed the title Add own version of Datafusion optimize_projections optimizer rule Add own modified version of Datafusion optimize_projections rule Nov 29, 2024
phillipleblanc
phillipleblanc previously approved these changes Nov 29, 2024
@sgrebnov sgrebnov merged commit bbc0f89 into spiceai-43 Nov 29, 2024
@sgrebnov sgrebnov deleted the sgrebnov/custom-optimize-projections-rule branch November 29, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants