Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11740#discussion_r56376958
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/WholeStageCodegen.scala 
---
    @@ -396,7 +401,7 @@ case class WholeStageCodegen(child: SparkPlan) extends 
UnaryNode with CodegenSup
             s"""
                |$evaluateInputs
                |${code.code.trim}
    -           |append(${code.value}.copy());
    +           |append(${code.value}$doCopy);
    --- End diff --
    
    If there is only one row will be buffered here, we do not need to copy it. 
The parent of WholeStageCodegen will do the copy if needed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to