Skip to main content

response_to_batch_auto

Function response_to_batch_auto 

Source
pub fn response_to_batch_auto(response: Value) -> Result<RecordBatch>
Expand description

Convert a raw GRAPH.QUERY response to a RecordBatch without a pre-registered schema.

Column names are taken from the FalkorDB response header row. The Arrow type for each column is inferred by inspecting the first non-null Redis value in that column:

Redis valueArrow type
IntInt64
DoubleFloat64
BooleanBoolean
BulkString / SimpleString / otherUtf8
all-null columnUtf8 (fallback)

This means integer IDs like _gar_id, src, and dst are returned as Int64 by default — no registration needed.