pub struct ColumnProfileInput<'a> {Show 14 fields
pub name: String,
pub data_type: DataType,
pub total_count: usize,
pub null_count: usize,
pub unique_count: Option<usize>,
pub unique_count_is_approximate: Option<bool>,
pub sample_values: &'a [String],
pub text_lengths: Option<TextLengths>,
pub boolean_counts: Option<(usize, usize)>,
pub skip_statistics: bool,
pub skip_patterns: bool,
pub locale: Option<&'a str>,
pub exact_numeric: Option<ExactNumericAggregates>,
pub exact_date_matches: Option<usize>,
}Expand description
Inputs that every engine can provide for centralized profile construction.
Fields§
§name: String§data_type: DataType§total_count: usize§null_count: usize§unique_count: Option<usize>§unique_count_is_approximate: Option<bool>Whether unique_count is an approximate (HLL) estimate. None mirrors
unique_count: None; Some(false) for exact counts; Some(true) once
the engine’s cardinality estimator has spilled to its HLL sketch.
sample_values: &'a [String]§text_lengths: Option<TextLengths>Pre-computed text lengths for engines that track them incrementally.
When Some, text stats are built from these instead of re-scanning samples.
boolean_counts: Option<(usize, usize)>Pre-computed boolean counts (true_count, false_count) for boolean columns.
skip_statistics: boolWhen true, skip statistics computation (produce ColumnStats::None).
skip_patterns: boolWhen true, skip pattern detection (produce patterns: None).
locale: Option<&'a str>Optional locale for pattern detection (e.g. “IT”, “US”).
exact_numeric: Option<ExactNumericAggregates>Exact aggregates over every numeric value the engine streamed.
When present, these override the sample-derived min, max, mean,
std_dev, and variance on numeric columns, so those fields stay
exact even when sample_values no longer covers the full stream.
None means sample_values is the full data (in-memory sources)
or the engine has no exact accumulators for the column.
exact_date_matches: Option<usize>Number of values over the full stream accepted by the temporal parser.
None means sample_values is the complete in-memory column.