We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 688dde4 commit 2c6a23bCopy full SHA for 2c6a23b
datafusion/src/physical_optimizer/pruning.rs
@@ -244,11 +244,10 @@ impl<'a> StatisticsExpressionBuilder<'a> {
244
}
245
246
fn is_stat_column_missing(&self, statistics_type: StatisticsType) -> bool {
247
- self.stat_column_req
+ !self
248
+ .stat_column_req
249
.iter()
- .filter(|(c, t, _f)| c == &self.column_name && t == &statistics_type)
250
- .count()
251
- == 0
+ .any(|(c, t, _f)| c == &self.column_name && t == &statistics_type)
252
253
254
fn stat_column_expr(
0 commit comments