Skip to main content

ensure_arrow_registered

Function ensure_arrow_registered 

Source
pub fn ensure_arrow_registered(
    type_name: &str,
    schema: Arc<Schema>,
    encoder: ArrowEncoder,
    decoder: ArrowDecoder,
) -> Result<(), Error>
Expand description

Registers Arrow schema, encoder, and decoder for the given custom data type name if not already registered. If the type is already registered, returns Ok(()) without overwriting (idempotent). Use this where repeated registration can occur (e.g. module init).

ยงErrors

Does not return an error (idempotent insert into DashMap).