cpruijsen opened a new pull request, #502: URL: https://github.com/apache/arrow-js/pull/502
## What's Changed Yield buffered bytes before the next source chunk for positive exact-fit requests in `src/io/adapters.ts`. Record batches no longer arrive one chunk late when an IPC message ends exactly at a source chunk boundary. This applies to Iterable, AsyncIterable, DOM ReadableStream, and Node ReadableStream. The condition keeps the existing `<` case and adds equality only for positive sizes. Null and zero requests retain their existing behavior. `test/unit/ipc/reader/stream-reader-tests.ts` adds deterministic tests for schema and batch reads through iterable sources without a pull of the next message chunk. The tests also check batch contents, finite-stream completion, and consecutive null/zero reads through iterable sources. The latency tests fail on the unchanged baseline with `Expected: 1` and `Received: 2`, and pass with the fix. Closes #490. -- 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]
