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

Method is_volatile

datafusion/expr/src/expr.rs:2149–2152  ·  view source on GitHub ↗

Returns true if the expression is volatile, i.e. whether it can return different results when evaluated multiple times with the same input. For example the function call `RANDOM()` is volatile as each call will return a different value. See [`Volatility`] for more information.

(&self)

Source from the content-addressed store, hash-verified

2147 ///
2148 /// See [`Volatility`] for more information.
2149 pub fn is_volatile(&self) -> bool {
2150 self.exists(|expr| Ok(expr.is_volatile_node()))
2151 .expect("exists closure is infallible")
2152 }
2153
2154 /// Recursively find all [`Expr::Placeholder`] expressions, and
2155 /// to infer their [`DataType`] from the context of their use.

Callers 9

contains_volatile_exprFunction · 0.80
is_mergeable_predicateFunction · 0.80
rewriteMethod · 0.80
rewrite_projectionFunction · 0.80
expr_containsFunction · 0.80
candidate_linear_paramFunction · 0.80
f_upMethod · 0.80
has_common_conjunctionFunction · 0.80

Calls 2

existsMethod · 0.80
is_volatile_nodeMethod · 0.45

Tested by

no test coverage detected