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

Preserve constant values in union operations #13804

Closed
gokselk opened this issue Dec 17, 2024 · 0 comments · Fixed by #13805
Closed

Preserve constant values in union operations #13804

gokselk opened this issue Dec 17, 2024 · 0 comments · Fixed by #13805
Labels
enhancement New feature or request

Comments

@gokselk
Copy link
Contributor

gokselk commented Dec 17, 2024

Is your feature request related to a problem or challenge?

When performing union operations in DataFusion, constant values are not preserved across partitions even when they are identical on both sides. This limits optimization opportunities.

Describe the solution you'd like

Add constant value tracking to ConstExpr and preserve constant values across union operations when both sides have matching constants. This will enable better query optimization.

Describe alternatives you've considered

Continue with current behavior where constants are not preserved across unions, but this misses optimization opportunities.

Additional context

This enhancement will help with query optimization by maintaining constant value information across union operations when the values match on both sides.

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

Successfully merging a pull request may close this issue.

1 participant