Skip to main content

value_from_column

Function value_from_column 

Source
pub fn value_from_column(
    col: &dyn Array,
    data_type: &DataType,
    row: usize,
    crdt_mode: CrdtDecodeMode,
) -> Result<Value, Error>
Expand description

Decode an Arrow column value to a serde_json::Value.

§Arguments

  • col - The Arrow array to read from
  • data_type - The uni_common::DataType describing the column’s logical type
  • row - The row index to read
  • crdt_mode - How to handle CRDT decode errors

§Returns

The decoded JSON value, or an error if decoding fails.