Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lgbo-ustc committed Nov 6, 2024
1 parent 2facf71 commit c3e6bdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class CHSparkPlanExecApi extends SparkPlanExecApi with Logging {
aggregateAttributes,
initialInputBufferOffset,
// resultExpressions.distinct,
replacedResultExpressions,
replacedResultExpressions.distinct,
child
)
agg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ object CHHashAggregateExecTransformer {
aggExpr =>
aggExpr.mode match {
case Partial | PartialMerge =>
// For partial aggregate, the size of the result expressions of an aggregate expression
// is the same as aggBufferAttributes' length
val aggBufferAttributesCount = aggExpr.aggregateFunction.aggBufferAttributes.length
aggExpr.aggregateFunction match {
case avg: Average =>
Expand Down

0 comments on commit c3e6bdb

Please sign in to comment.