You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a377a9b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(arrow): export strings and binary arrays with offsets
Problem
Vortex exports UTF-8 and binary data as Arrow view arrays by default.
Some consumers require Arrow arrays that use 32-bit or 64-bit offsets.
These consumers must cast each view array and rebuild its buffers.
Implementation
Add VarBinBufferBuilder for 32-bit and 64-bit offsets.
Write Arrow value, offset, and validity buffers in this builder.
Decode FSST, OnPair, Zstd, Dict, RunEnd, and Sparse arrays directly into this builder.
Do not create an intermediate VarBinViewArray for these paths.
Interface
Add an optional Arrow type to the Rust and Python array APIs.
Add an optional Arrow schema to the Python file API.
Keep Arrow view arrays as the default output.
Result
Arrow uses the builder buffers without another copy.
Callers can select StringArray, BinaryArray, LargeStringArray, or LargeBinaryArray.
Signed-off-by: cl <cailue@apache.org>
0 commit comments