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

Function convert_to_expr

datafusion/physical-expr/src/utils/mod.rs:194–201  ·  view source on GitHub ↗

This function returns all `Arc `s inside the given `PhysicalSortExpr` sequence.

(
    sequence: impl IntoIterator<Item = T>,
)

Source from the content-addressed store, hash-verified

192/// This function returns all `Arc<dyn PhysicalExpr>`s inside the given
193/// `PhysicalSortExpr` sequence.
194pub fn convert_to_expr<T: Borrow<PhysicalSortExpr>>(
195 sequence: impl IntoIterator<Item = T>,
196) -> Vec<Arc<dyn PhysicalExpr>> {
197 sequence
198 .into_iter()
199 .map(|elem| Arc::clone(&elem.borrow().expr))
200 .collect()
201}
202
203/// This function finds the indices of `targets` within `items` using strict
204/// equality.

Callers

nothing calls this directly

Calls 3

collectMethod · 0.80
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…