Skip to main content

Module statistics

Module statistics 

Source
Expand description

Helpers for moving Statistics across the FFI boundary as prost-encoded datafusion_proto_common::Statistics bytes.

Statistics contains Precision<ScalarValue> for column min/max/sum, and ScalarValue is a large enum that’s impractical to mirror in #[repr(C)]. The proto round-trip already exists in datafusion-proto-common and is the same pattern used to ship filter expressions across the FFI boundary, so we reuse it here.