Skip to main content

Module ext_metadata

Module ext_metadata 

Source
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 field holds, 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.