n-young commented on code in PR #60076:
URL: https://github.com/apache/spark/pull/60076#discussion_r4508123616
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -3860,6 +3866,49 @@ class Analyzer(
Project(windowOps.output ++ newExpressionsWithWindowFunctions, windowOps)
} // end of addWindow
+ /**
+ * Builds nested window dependencies above HAVING so it filters groups
before every window.
+ * Grouping helpers stay below the projection that separates HAVING from
window scope.
+ */
+ private def addWindowsWithHaving(
Review Comment:
Synced onto #60090 at `02fb393511`. Its placement fixes remain independent
of the grouping flag. Updated the disabled-path goldens, clarified the config
docs, and added window-alias rejection controls under both flag values. All 583
local tests and Catalyst style pass. #60090 still needs to land first. @uros-b
@cloud-fan, could you take another look?
--
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]