rongma1997 commented on a change in pull request #26137: [SPARK-29490][SQL] 
Reset 'WritableColumnVector' in 'RowToColumnarExec'
URL: https://github.com/apache/spark/pull/26137#discussion_r338871856
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/Columnar.scala
 ##########
 @@ -454,6 +454,7 @@ case class RowToColumnarExec(child: SparkPlan) extends 
UnaryExecNode {
 
           override def next(): ColumnarBatch = {
             cb.setNumRows(0)
+            vectors.foreach(_.reset())
 
 Review comment:
   Thanks for your comments. Sorry but don't find this bug in `branch-2.4`. 
This part of code is proposed by 
[https://issues.apache.org/jira/browse/SPARK-27396](url)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to