MCPcopy Create free account
hub / github.com/apache/datafusion / expressions

Method expressions

datafusion/expr/src/logical_plan/plan.rs:413–422  ·  view source on GitHub ↗

Returns all expressions (non-recursively) evaluated by the current logical plan node. This does not include expressions in any children. Note this method `clone`s all the expressions. When possible, the [`tree_node`] API should be used instead of this API. The returned expressions do not necessarily represent or even contributed to the output schema of this node. For example, `LogicalPlan::Filte

(self: &LogicalPlan)

Source from the content-addressed store, hash-verified

411 ///
412 /// [`tree_node`]: crate::logical_plan::tree_node
413 pub fn expressions(self: &LogicalPlan) -> Vec<Expr> {
414 let mut exprs = vec![];
415 self.apply_expressions(|e| {
416 exprs.push(e.clone());
417 Ok(TreeNodeRecursion::Continue)
418 })
419 // closure always returns OK
420 .unwrap();
421 exprs
422 }
423
424 /// Returns all the out reference(correlated) expressions (recursively) in the current
425 /// logical plan nodes and all its descendant nodes.

Callers 9

recompute_schemaMethod · 0.45
test_join_with_new_exprsFunction · 0.45
rewrite_extension_inputsFunction · 0.45
apply_expressionsMethod · 0.45
map_expressionsMethod · 0.45
add_missing_columnsMethod · 0.45
replace_columnsFunction · 0.45
rewrite_sort_col_by_aggsFunction · 0.45

Calls 3

apply_expressionsMethod · 0.80
pushMethod · 0.45
cloneMethod · 0.45

Tested by 2

test_join_with_new_exprsFunction · 0.36