gokselk opened a new issue, #13804: URL: https://github.com/apache/datafusion/issues/13804
### 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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
