Skip to content

Commit

Permalink
fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
shuai-xu committed Sep 12, 2024
1 parent 799e18c commit c1950c9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,11 @@ case class CHHashAggregateExecPullOutHelper(

override def allAggregateResultAttributes(
groupingExpressions: Seq[NamedExpression]): List[Attribute] = {
super.allAggregateResultAttributes(CHAggUtil.distinctIgnoreQualifier(groupingExpressions))
if (aggregateExpressions.nonEmpty) {
super.allAggregateResultAttributes(groupingExpressions)
} else {
super.allAggregateResultAttributes(CHAggUtil.distinctIgnoreQualifier(groupingExpressions))
}
}

protected def getAttrForAggregateExpr(
Expand Down

0 comments on commit c1950c9

Please sign in to comment.