Skip to main content

laminar_schema_field_type

Function laminar_schema_field_type 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn laminar_schema_field_type( schema: *mut LaminarSchema, index: usize, out: *mut *mut c_char, ) -> i32
Expand description

Get the type of a field by index.

Returns the Arrow data type as a string (e.g., “Int64”, “Utf8”, “Float64”).

§Arguments

  • schema - Schema handle
  • index - Field index (0-based)
  • out - Pointer to receive type name (caller frees with laminar_string_free)

§Returns

LAMINAR_OK on success, or an error code.

§Safety

  • schema must be a valid schema handle
  • index must be less than the number of fields
  • out must be a valid pointer