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

    https://github.com/apache/spark/pull/20850#discussion_r178478113
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/GenerateColumnAccessor.scala
 ---
    @@ -212,11 +210,11 @@ object GenerateColumnAccessor extends 
CodeGenerator[Seq[DataType], ColumnarItera
     
             public InternalRow next() {
               currentRow += 1;
    -          bufferHolder.reset();
    +          rowWriter.reset();
               rowWriter.zeroOutNullBytes();
               ${extractorCalls}
    -          unsafeRow.setTotalSize(bufferHolder.totalSize());
    -          return unsafeRow;
    +          rowWriter.setTotalSize();
    +          return rowWriter.getRow();
    --- End diff --
    
    Should we call `reset()` and `setTotalSize()` as the interpreted version 
does?


---

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

Reply via email to