@@ -63,7 +63,7 @@ use datafusion_physical_expr::create_physical_expr;
63
63
///
64
64
/// ```text
65
65
/// min_values("a") -> Some([5, Null, 20])
66
- /// max_values("a") -> Some([20 , Null, 30])
66
+ /// max_values("a") -> Some([10 , Null, 30])
67
67
/// min_values("X") -> None
68
68
/// ```
69
69
pub trait PruningStatistics {
@@ -116,7 +116,7 @@ impl PruningPredicate {
116
116
///
117
117
/// The pruning predicate evaluates to TRUE or NULL
118
118
/// if the filter predicate *might* evaluate to TRUE for at least
119
- /// one row whose vaules fell within the min/max ranges (in other
119
+ /// one row whose values fell within the min/max ranges (in other
120
120
/// words they might pass the predicate)
121
121
///
122
122
/// For example, the filter expression `(column / 2) = 4` becomes
@@ -150,7 +150,7 @@ impl PruningPredicate {
150
150
} )
151
151
}
152
152
153
- /// For each set of statistics, evalates the pruning predicate
153
+ /// For each set of statistics, evaluates the pruning predicate
154
154
/// and returns a `bool` with the following meaning for a
155
155
/// all rows whose values match the statistics:
156
156
///
@@ -235,7 +235,7 @@ impl RequiredStatColumns {
235
235
Self :: default ( )
236
236
}
237
237
238
- /// Retur an iterator over items in columns (see doc on
238
+ /// Returns an iterator over items in columns (see doc on
239
239
/// `self.columns` for details)
240
240
fn iter ( & self ) -> impl Iterator < Item = & ( Column , StatisticsType , Field ) > {
241
241
self . columns . iter ( )
@@ -259,7 +259,7 @@ impl RequiredStatColumns {
259
259
///
260
260
/// for example, an expression like `col("foo") > 5`, when called
261
261
/// with Max would result in an expression like `col("foo_max") >
262
- /// 5` with the approprate entry noted in self.columns
262
+ /// 5` with the appropriate entry noted in self.columns
263
263
fn stat_column_expr (
264
264
& mut self ,
265
265
column : & Column ,
@@ -780,7 +780,7 @@ fn build_statistics_expr(expr_builder: &mut PruningExpressionBuilder) -> Result<
780
780
}
781
781
// other expressions are not supported
782
782
_ => return Err ( DataFusionError :: Plan (
783
- "expressions other than (neq, eq, gt, gteq, lt, lteq) are not superted "
783
+ "expressions other than (neq, eq, gt, gteq, lt, lteq) are not supported "
784
784
. to_string ( ) ,
785
785
) ) ,
786
786
} ;
0 commit comments