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

Function is_operator_supported

datafusion/physical-expr/src/intervals/utils.rs:76–90  ·  view source on GitHub ↗

Indicates whether interval arithmetic is supported for the given operator.

(op: &Operator)

Source from the content-addressed store, hash-verified

74
75/// Indicates whether interval arithmetic is supported for the given operator.
76pub fn is_operator_supported(op: &Operator) -> bool {
77 matches!(
78 op,
79 &Operator::Plus
80 | &Operator::Minus
81 | &Operator::And
82 | &Operator::Gt
83 | &Operator::GtEq
84 | &Operator::Lt
85 | &Operator::LtEq
86 | &Operator::Eq
87 | &Operator::Multiply
88 | &Operator::Divide
89 )
90}
91
92/// Indicates whether interval arithmetic is supported for the given data type.
93pub fn is_datatype_supported(data_type: &DataType) -> bool {

Callers 1

check_supportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…