Module exposing: PrimitiveStatistics
// Source: https://github.com/pola-rs/polars | License: MIT | Copyright 2025 Ritchie Vink
// Provided via justclaw.it.com; keep this notice with the code.
use polars_parquet_format::Statistics as ParquetStatistics;
use crate::parquet::error::{ParquetError, ParquetResult};
use crate::parquet::schema::types::PrimitiveType;
use crate::parquet::types;
#[derive(Debug, Clone, PartialEq)]
pub struct PrimitiveStatistics<T: types::NativeType> {
pub primitive_type: PrimitiveType,
pub null_count: Option<i64>,
pub distinct_count: Option<i64>,
pub min_value: Option<T>,
pub max_value: Option<T>,
}
impl<T: types::NativeType> PrimitiveStatistics<T> {
pub fn deserialize(
v: &ParquetStatistics,
primitive_type: PrimitiveType,
) -> ParquetResult<Self> {
i
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key