LuciferYang opened a new issue, #13706:
URL: https://github.com/apache/gluten/issues/13706

   Since #13280, a scalar pandas UDF that runs in `ColumnarArrowEvalPythonExec` 
fails when a partition sends more than one batch to Python, which happens once 
a partition has more than `spark.gluten.sql.columnar.maxBatchSize` rows (4096 
by default):
   
   ```
   java.lang.IllegalStateException: Cannot retain a released vector
        at 
org.apache.gluten.vectorized.RefCountedArrowColumnVector.retain(RefCountedArrowColumnVector.java:49)
        at 
org.apache.spark.api.python.ColumnarArrowEvalPythonExec.adjustRefCnt(ColumnarArrowEvalPythonExec.scala:519)
   ```
   
   The Python runner's reader returns every output batch over the same 
`RefCountedArrowColumnVector`s, which wrap the vectors of the Arrow stream 
reader's root. Closing the first joined batch releases them, and the second 
batch then retains a released vector.
   
   It reproduces on v1.8.0-rc1 with the default configuration: a pandas UDF 
over a single 10,000-row Parquet partition fails.
   
   This issue was written with the assistance of AI (Claude Opus).
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to