Skip to content

Commit b6a54c6

Browse files
committed
fix more typo
1 parent b57eee1 commit b6a54c6

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

datafusion/expr/src/expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,7 @@ impl Expr {
19361936
/// Returns the placement classification of this expression.
19371937
///
19381938
/// This tells us if optimizers should preferentially
1939-
/// move this expression towards the leafs of the execution plan
1939+
/// move this expression towards the leaves of the execution plan
19401940
/// tree (for cheap expressions or expressions that reduce the data size)
19411941
/// or towards the root of the execution plan tree (for expensive expressions
19421942
/// that should be run after filtering or parallelization, or expressions that increase the data size).

datafusion/expr/src/udf.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -918,15 +918,15 @@ pub trait ScalarUDFImpl: Debug + DynEq + DynHash + Send + Sync {
918918
/// # Example
919919
///
920920
/// - `get_field(struct_col, 'field_name')` with a literal key is leaf-pushable as it
921-
/// performs metadata only (cheap) extraction of a sub-array from a struct column.
922-
/// Thus, it can be placed near the data source to minimize data early.
921+
/// performs metadata only (cheap) extraction of a sub-array from a struct column.
922+
/// Thus, it can be placed near the data source to minimize data early.
923923
/// - `string_col like '%foo%'` performs expensive per-row computation and should be placed
924-
/// further up the tree so that it can be run after filtering, sorting, etc.
924+
/// further up the tree so that it can be run after filtering, sorting, etc.
925925
///
926926
/// # Arguments
927927
///
928928
/// * `args` - Classification of each argument's placement, collected from the expression tree
929-
/// by the caller.
929+
/// by the caller.
930930
fn placement(&self, _args: &[ExpressionPlacement]) -> ExpressionPlacement {
931931
ExpressionPlacement::PlaceAtRoot
932932
}

datafusion/physical-plan/src/filter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ impl ExecutionPlan for FilterExec {
568568
projection: &ProjectionExec,
569569
) -> Result<Option<Arc<dyn ExecutionPlan>>> {
570570
// If we have an embedded projection already we cannot continue
571-
// This is not a real problem: calling this method generates the embeded projection
571+
// This is not a real problem: calling this method generates the embedded projection
572572
// so we should not have one already!
573573
if self.projection().is_some() {
574574
return Ok(None);

0 commit comments

Comments
 (0)