Function mz_repr::stats::jsonb_stats_nulls
source · pub(crate) fn jsonb_stats_nulls(
col: &<Option<Vec<u8>> as Data>::Col,
validity: ValidityRef,
) -> Result<(JsonStats, usize), String>
Expand description
Returns the JsonStats and null_count for the column of ScalarType::Jsonb
.
Each entry in the column is a single Datum encoded as a ProtoDatum.
NB: Vec<u8>
and Option<Vec<u8>>
happen to use the same type for Col.
It’s a bit odd to use the Option version for both, but it happens to work
because the non-option version won’t generate any Nulls.