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

Method new_unknown

datafusion/physical-expr-common/src/utils.rs:50–62  ·  view source on GitHub ↗

Constructs a new `ExprPropertiesNode` with unknown properties for a given physical expression. This node initializes with default properties and recursively applies this to all child expressions.

(expr: Arc<dyn PhysicalExpr>)

Source from the content-addressed store, hash-verified

48 /// given physical expression. This node initializes with default properties
49 /// and recursively applies this to all child expressions.
50 pub fn new_unknown(expr: Arc<dyn PhysicalExpr>) -> Self {
51 let children = expr
52 .children()
53 .into_iter()
54 .cloned()
55 .map(Self::new_unknown)
56 .collect();
57 Self {
58 expr,
59 data: ExprProperties::new_unknown(),
60 children,
61 }
62 }
63}
64
65/// If the mask selects more than this fraction of rows, use

Callers

nothing calls this directly

Calls 5

collectMethod · 0.80
mapMethod · 0.45
clonedMethod · 0.45
into_iterMethod · 0.45
childrenMethod · 0.45

Tested by

no test coverage detected