#[non_exhaustive]pub struct ColumnChange {
pub name: String,
pub null_pct_a: Option<f64>,
pub null_pct_b: Option<f64>,
pub null_pct_delta: Option<f64>,
pub data_type_a: Option<DataType>,
pub data_type_b: Option<DataType>,
pub native_type_a: Option<NativeType>,
pub native_type_b: Option<NativeType>,
}Expand description
One column’s change. Serialized as an entry of the columns object, keyed
by the column’s name. Each side’s number covers what that side’s scan
read; see ReportReference::evidence.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe column’s name.
null_pct_a: Option<f64>Null percentage in a, or None when a has no such column or the
column holds no values.
null_pct_b: Option<f64>Null percentage in b, under the same rules.
null_pct_delta: Option<f64>null_pct_b - null_pct_a, when both are present. Positive means more
nulls.
data_type_a: Option<DataType>The type a inferred, by its lowercase name ("integer"), or None
when a has no such column, read no value for it that is not null,
or did not record its counts or a type this build knows. A column
whose values are all null establishes no type, so two names that
differ here are the change the quality gate reports as
column_type_changed.
data_type_b: Option<DataType>The type b inferred, under the same rules.
native_type_a: Option<NativeType>The type a’s source declared for the column (#906), or None when
a has no such column or recorded no declaration. A declaration does
not depend on the values, so it is kept for an all-null column too.
native_type_b: Option<NativeType>The type b’s source declared, under the same rules.