WangGuangxin opened a new pull request, #5441:
URL: https://github.com/apache/incubator-gluten/pull/5441

   ## What changes were proposed in this pull request?
   The buffer size may overflow before convert to Long.
   
   We got an error in `RowToVeloxColumnarExec`,
   
   ```
   io.glutenproject.exception.GlutenException: java.lang.RuntimeException: 
Exception: VeloxRuntimeError
   Error Source: RUNTIME
   Error Code: INVALID_STATE
   Reason: Operator::getOutput failed for [operator: ValueStream, plan node ID: 
0]: Error during calling Java code from native code: 
java.lang.IllegalArgumentException: the requested size must be non-negative
    at 
io.glutenproject.shaded.org.apache.arrow.util.Preconditions.checkArgument(Preconditions.java:136)
    at 
io.glutenproject.shaded.org.apache.arrow.memory.BaseAllocator.buffer(BaseAllocator.java:291)
    at 
io.glutenproject.shaded.org.apache.arrow.memory.RootAllocator.buffer(RootAllocator.java:29)
    at 
io.glutenproject.shaded.org.apache.arrow.memory.BaseAllocator.buffer(BaseAllocator.java:280)
    at 
io.glutenproject.shaded.org.apache.arrow.memory.RootAllocator.buffer(RootAllocator.java:29)
    at 
io.glutenproject.execution.RowToVeloxColumnarExec$$anon$1.nativeConvert(RowToVeloxColumnarExec.scala:184)
    at 
io.glutenproject.execution.RowToVeloxColumnarExec$$anon$1.next(RowToVeloxColumnarExec.scala:225)
    at 
io.glutenproject.execution.RowToVeloxColumnarExec$$anon$1.next(RowToVeloxColumnarExec.scala:134)
    at io.glutenproject.utils.IteratorCompleter.next(Iterators.scala:77)
    at io.glutenproject.utils.PayloadCloser.next(Iterators.scala:39)
    at scala.collection.convert.Wrappers$IteratorWrapper.next(Wrappers.scala:33)
    at 
io.glutenproject.vectorized.GeneralInIterator.nextColumnarBatch(GeneralInIterator.java:38)
    at 
io.glutenproject.vectorized.ColumnarBatchInIterator.next(ColumnarBatchInIterator.java:33)
    at 
io.glutenproject.vectorized.ColumnarBatchOutIterator.nativeHasNext(Native 
Method)
   ```
   
   ## How was this patch tested?
   
   Manually test
   
   


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