cdelmonte-zg opened a new pull request, #24750: URL: https://github.com/apache/datafusion/pull/24750
## Which issue does this PR close? - Closes #15190 ## Rationale for this change Common subexpression elimination can extract duplicated window functions into an intermediate Projection. Since window functions cannot be evaluated by a projection, this produces a plan that fails during physical planning. ## What changes are included in this PR? Exclude WindowFunction expressions themselves from CSE extraction and add a regression test. ## Are these changes tested? Yes. A regression test verifies that duplicated window functions remain in the WindowAggr node. ## Are there any user-facing changes? Well, queries affected by #15190 no longer fail during physical planning, no changes in docs etc tho -- 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]
