Expand description
Encoding Vortex extension types in Arrow field metadata.
Typed plugins use crate::ArrowSession::register_extension, whose adapter handles Vortex
metadata without exposing its keys or encoding to the callbacks.
A custom extension with no Arrow ExtensionType implementation can use
set_arrow_extension_name to name its storage field. An extension without an Arrow plugin
uses ArrowSession::to_arrow_storage_field instead.
Field metadata must be UTF-8, so Vortex payloads use marked base64. The Vortex ID path also accepts unmarked UTF-8 metadata from older producers. A separate Vortex payload requires the marker, and an absent payload imposes no constraint on a target’s Vortex metadata.
Constants§
- EXTENSION_
METADATA_ ENCODING_ KEY - The Arrow field metadata key that names the encoding of a Vortex metadata payload.
- VORTEX_
EXTENSION_ METADATA_ KEY - Vortex metadata retained alongside an Arrow extension type.
Functions§
- decode_
arrow_ ext_ metadata - Returns the extension metadata bytes that
fieldholds, which are empty if it has none. - encode_
arrow_ ext_ metadata - Returns the Arrow field metadata that holds
ext_dtype. - set_
arrow_ extension_ name - Sets an Arrow extension name while preserving the field’s other metadata.