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

Method is_volatile_node

datafusion/expr/src/expr.rs:2138–2140  ·  view source on GitHub ↗

Returns true if the expression node is volatile, i.e. whether it can return different results when evaluated multiple times with the same input. Note: unlike [`Self::is_volatile`], this function does not consider inputs: - `rand()` returns `true`, - `a + rand()` returns `false`

(&self)

Source from the content-addressed store, hash-verified

2136 /// - `rand()` returns `true`,
2137 /// - `a + rand()` returns `false`
2138 pub fn is_volatile_node(&self) -> bool {
2139 matches!(self, Expr::ScalarFunction(func) if func.func.signature().volatility == Volatility::Volatile)
2140 }
2141
2142 /// Returns true if the expression is volatile, i.e. whether it can return different
2143 /// results when evaluated multiple times with the same input.

Callers 2

is_volatileMethod · 0.45
is_validMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected