Skip to main content

column_as_vid_array

Function column_as_vid_array 

Source
pub fn column_as_vid_array(col: &dyn Array) -> Result<Cow<'_, UInt64Array>>
Expand description

Extract a UInt64Array of vertex/edge IDs from an Arrow column.

Accepts both UInt64 (native VID type) and Int64 (from parameter injection where arrow_to_json_value round-trips through Value::Int). For Int64 columns the values are cast to UInt64.

ยงErrors

Returns a DataFusionError::Execution if the column is neither UInt64 nor Int64.