Weixin-Xu commented on code in PR #13492:
URL: https://github.com/apache/gluten/pull/13492#discussion_r4421641118


##########
backends-bolt/src/main/scala/org/apache/gluten/execution/ColumnarRangeExec.scala:
##########
@@ -98,17 +100,17 @@ case class ColumnarRangeExec(range: LogicalRange) extends 
ColumnarRangeBaseExec
                   batchSize
                 )
 
-                val vectors = 
ArrowWritableColumnVector.allocateColumns(numRows, schema)
-
+                val root = ArrowColumnVectors.allocateRoot(schema)

Review Comment:
   The remaining row count is now bounded in BigInt before conversion: 
remaining.min(BigInt(batchSize)).max(BigInt(1)).toInt. Added regression 
coverage for counts beyond the Int range to ensure they still produce normally 
sized batches.



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