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)
| 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. |
no test coverage detected