Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/19781#discussion_r151924692
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/SortExec.scala ---
@@ -124,9 +124,11 @@ case class SortExec(
// Name of sorter variable used in codegen.
private var sorterVariable: String = _
- // The result rows come from the sort buffer, so this operator doesn't
need to copy its result
- // even if its child does.
- override def needCopyResult: Boolean = false
+ private var _needCopyResult: Option[Boolean] = None
--- End diff --
do you mean `doProduce` may not be called?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]