Skip to content

v2.1.0

@MyronM95 MyronM95 tagged this 30 Sep 17:27
Callers that stream column bytes themselves (e.g. multi-GB columns
written straight from raw memory) had no way to produce a valid Arrow
file except re-implementing the format, which is how 1brc_arrow ended up
with an 8-byte trailer and a footer without a schema.

New public API: encode_file_header(schema), encode_record_batch_header(
length, nodes, buffers, body_len), FileBlock, and encode_file_footer(
schema, blocks). encode_arrow_file and ArrowFileWriter are built on the
same pieces; a test assembles files by hand from them and checks they
are byte-identical to encode_arrow_file (multiple batches, List<Utf8>
with nulls, zero batches). Encoded bytes unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assets 2
Loading