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

    https://github.com/apache/spark/pull/20590#discussion_r167762763
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcFileFormat.scala
 ---
    @@ -188,6 +188,9 @@ class OrcFileFormat
             if (enableVectorizedReader) {
               val batchReader = new OrcColumnarBatchReader(
                 enableOffHeapColumnVector && taskContext.isDefined, 
copyToSpark, capacity)
    +          val iter = new RecordReaderIterator(batchReader)
    +          Option(TaskContext.get()).foreach(_.addTaskCompletionListener(_ 
=> iter.close()))
    +
               batchReader.initialize(fileSplit, taskAttemptContext)
    --- End diff --
    
    Because I tried to verify it manually in local, seems `close` is called 
before this change. Maybe I miss something or this is environment depending.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to