You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "xiaoxuandev (via GitHub)" <gi...@apache.org> on 2026/04/06 18:18:53 UTC

Re: [PR] [SPARK-31561][SQL] Add QUALIFY Clause [spark]

xiaoxuandev commented on code in PR #55019:
URL: https://github.com/apache/spark/pull/55019#discussion_r3040942168


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -2843,8 +2874,17 @@ class Analyzer(
    *
    * We need to make sure the expressions all fully resolved before looking for aggregate functions
    * and group by expressions from them.
-   */
+  */
   object ResolveAggregateFunctions extends Rule[LogicalPlan] {
+    private def invalidResolvedQualifyAggregateFunction(expr: Expression): Option[Expression] =

Review Comment:
   `invalidResolvedQualifyAggregateFunction` is duplicated 4 times, worth extracting into a shared helper?



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org