zhztheplayer commented on code in PR #9075:
URL: https://github.com/apache/incubator-gluten/pull/9075#discussion_r2007327015
##########
backends-velox/src/main/scala/org/apache/spark/sql/execution/unsafe/UnsafeBytesBufferArray.scala:
##########
@@ -79,7 +75,17 @@ case class UnsafeBytesBufferArray(
assert(bytesBuffer.length == bytesBufferLengths(index))
// first to allocate underlying long array
if (null == longArray && index == 0) {
- longArray = allocateArray((totalBytes + 7) / 8)
+ val numBytes = totalBytes + 7
Review Comment:
`allocateArray` accepts number of long elements so number of bytes will be
multiplied by 8
--
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]