Skip to main content

encode_custom_to_arrow

Function encode_custom_to_arrow 

Source
pub fn encode_custom_to_arrow(
    type_name: &str,
    items: &[Arc<dyn CustomDataTrait>],
) -> Result<Option<RecordBatch>, Error>
Expand description

Encodes a slice of custom data trait objects to a RecordBatch using the registered encoder.

ยงErrors

Returns an error if the type is not registered or encoding fails.