Repository navigation
Conversation
…C buffers Walks a buffer of concatenated Arrow IPC streams and returns one kdb table per logical stream found, since a single IPC reader only consumes the stream at the head of its input. Supports the same DECIMAL128_AS_DOUBLE and WITH_NULL_BITMAP options as parseArrowData.
|
Is this batching of multiple arrow IPC streams into a single buffer an officially recognised pattern? Do any of the Apache Arrow docs talk about doing this? |
Closes #46
A single IPC stream reader only consumes the one logical stream at the head
of its input, so a buffer produced by concatenating multiple self-contained
Arrow IPC streams (e.g. repeated
serializeArrowoutput joined together)can't be parsed by
parseArrowData/readArrowData- only the first streamis read.
parseArrowToTableswalks such a buffer, opening a fresh reader at eachoffset and advancing by exactly what that reader consumed, returning one
kdb table per logical stream found. Supports the same
DECIMAL128_AS_DOUBLEand
WITH_NULL_BITMAPoptions asparseArrowData.