shyjsarah opened a new pull request, #8799: URL: https://github.com/apache/paimon/pull/8799
### Purpose `NativeVectorGlobalIndexReader` receives destination buffers from the native vector index callback. The current vectored-read path allocates a second byte array for every range and then copies the data into those destination buffers. This change: - allows a `FileRange` to be backed by a caller-provided byte array; - makes sequential, single-range, and combined-range vectored reads fill that buffer directly; - removes the extra allocation and `System.arraycopy` from native vector index reads; - preserves the existing `CompletableFuture<byte[]>` contract by completing it with the same provided buffer. ### Tests - `mvn -B -ntp -pl paimon-common,paimon-vector -am -DskipITs -Dtest=VectoredReadUtilsTest,SeekableStreamVectorIndexInputTest -Dsurefire.failIfNoSpecifiedTests=false 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]
