pub trait ResultToArrow {
// Required methods
fn to_arrow_array(&self) -> Arc<dyn ArrowArray>;
fn arrow_data_type(&self) -> DataType;
}Expand description
Trait for converting aggregation results to Arrow arrays.
This preserves the native type (e.g., Float64 for AVG) and nullable
semantics (empty windows produce null, not zero).
Required Methods§
Sourcefn to_arrow_array(&self) -> Arc<dyn ArrowArray>
fn to_arrow_array(&self) -> Arc<dyn ArrowArray>
Converts the result to a single-element Arrow array.
Sourcefn arrow_data_type(&self) -> DataType
fn arrow_data_type(&self) -> DataType
Returns the Arrow [DataType] for this result.