Github user liufengdb commented on a diff in the pull request:
https://github.com/apache/spark/pull/20174#discussion_r160217718
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/aggregate/HashAggregateExec.scala
---
@@ -230,6 +236,7 @@ case class HashAggregateExec(
| private void $doAgg() throws java.io.IOException {
| // initialize aggregation buffer
| $initBufVar
+ | $hasInput = false;
--- End diff --
I actually tried it, but found it was hard because we don't control the
codegen of line `/* 038 */ if (shouldStop()) return;` in `doAgg`.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]