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

Method contains_scalar_subquery

datafusion/expr/src/expr.rs:2128–2131  ·  view source on GitHub ↗

Returns true if the expression contains a scalar subquery.

(&self)

Source from the content-addressed store, hash-verified

2126
2127 /// Returns true if the expression contains a scalar subquery.
2128 pub fn contains_scalar_subquery(&self) -> bool {
2129 self.exists(|expr| Ok(matches!(expr, Expr::ScalarSubquery(_))))
2130 .expect("exists closure is infallible")
2131 }
2132
2133 /// Returns true if the expression node is volatile, i.e. whether it can return
2134 /// different results when evaluated multiple times with the same input.

Callers 1

rewriteMethod · 0.80

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected