diff --git a/datafusion/physical-expr/src/intervals/cp_solver.rs b/datafusion/physical-expr/src/intervals/cp_solver.rs index cde1b5cae8b18..3803c5d1f285c 100644 --- a/datafusion/physical-expr/src/intervals/cp_solver.rs +++ b/datafusion/physical-expr/src/intervals/cp_solver.rs @@ -176,7 +176,7 @@ impl ExprIntervalGraphNode { &self.interval } - /// This function creates a DAEG node from Datafusion's [`ExprTreeNode`] + /// This function creates a DAEG node from Datafusion's [`PhysicalExpr`] /// object. Literals are created with definite, singleton intervals while /// any other expression starts with an indefinite interval ([-∞, ∞]). pub fn make_node(expr: &Arc, schema: &Schema) -> Result { diff --git a/datafusion/physical-expr/src/utils/mod.rs b/datafusion/physical-expr/src/utils/mod.rs index 1ab51e50d1192..aa907d6ea6e33 100644 --- a/datafusion/physical-expr/src/utils/mod.rs +++ b/datafusion/physical-expr/src/utils/mod.rs @@ -125,9 +125,8 @@ pub fn get_indices_of_exprs_strict>>( .collect() } -/// This struct facilitates the [TreeNodeRewriter] mechanism to convert a -/// [PhysicalExpr] tree into a DAEG (i.e. an expression DAG) by collecting -/// identical expressions in one node. Caller specifies the node type in the +/// This struct converts a [PhysicalExpr] tree into a DAEG (i.e. an expression DAG) by +/// collecting identical expressions in one node. Caller specifies the node type in the /// DAEG via the `constructor` argument. struct PhysicalExprDAEGBuilder<'a, T, F: Fn(&Arc) -> Result> { // The resulting DAEG (expression DAG).