We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efa9f4d commit aa06eaaCopy full SHA for aa06eaa
vortex-file/src/pruning.rs
@@ -45,7 +45,10 @@ pub fn extract_relevant_file_stats_as_struct_row(
45
let typed_stats = stat_set.as_typed_ref(&field_dtype);
46
47
for stat in stats {
48
- if stat == &Stat::Max || stat == &Stat::Min || stat == &Stat::NaNCount {
+ if matches!(
49
+ stat,
50
+ Stat::Max | Stat::Min | Stat::NaNCount | Stat::NullCount
51
+ ) {
52
let Some(stat_value) = typed_stats.get(*stat).and_then(|p| p.as_exact()) else {
53
vortex_bail!("missing stat {}, {} from stats set", field, stat)
54
};
0 commit comments