mzabaluev opened a new pull request, #26589: URL: https://github.com/apache/datafusion/pull/26589
## Which issue does this PR close? - Closes #26581. ## What changes are included in this PR? Precompute expressions that are known to be cheap as their own columns in `ProjectedCaseBody`, so the branch filters copy a few scalar columns rather than whole top-level wide columns those are nested in. ## What is the testing strategy for this PR? Unit tests to verify that supported expressions are pre-computed, while custom/unknown expressions that may be masking column access are excluded. Added SQL test cases to verify that the optimization works correctly. The speedup of `CASE WHEN` using struct fields is verified with a benchmark. ## Are there any user-facing changes? No. -- 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]
