cloud-fan commented on code in PR #51567:
URL: https://github.com/apache/spark/pull/51567#discussion_r2218090752
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -2919,21 +2919,21 @@ class Analyzer(override val catalogManager:
CatalogManager) extends RuleExecutor
def resolveExprsWithAggregate(
exprs: Seq[Expression],
agg: Aggregate): (Seq[NamedExpression], Seq[Expression]) = {
- val extraAggExprs = ArrayBuffer.empty[NamedExpression]
+ val extraAggExprs = new LinkedHashSet[NamedExpression]
Review Comment:
shall we use `ExpressionSet` which deduplicates expressions by their
semantics instead of object equality?
--
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]