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

Method is_numerical_operators

datafusion/expr-common/src/operator.rs:204–213  ·  view source on GitHub ↗

Return true if the operator is a numerical operator. For example, 'Binary(a, +, b)' would be a numerical expression. PostgresSQL concept:

(&self)

Source from the content-addressed store, hash-verified

202 /// For example, 'Binary(a, +, b)' would be a numerical expression.
203 /// PostgresSQL concept: <https://www.postgresql.org/docs/7.0/operators2198.htm>
204 pub fn is_numerical_operators(&self) -> bool {
205 matches!(
206 self,
207 Operator::Plus
208 | Operator::Minus
209 | Operator::Multiply
210 | Operator::Divide
211 | Operator::Modulo
212 )
213 }
214
215 /// Return true if the comparison operator can be used in interval arithmetic and constraint
216 /// propagation

Callers 3

evaluate_statisticsMethod · 0.80
to_result_type_arrayFunction · 0.80
signatureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected