Skip to content

Commit

Permalink
Revert is_comparison_operator and make it deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
blaginin committed Oct 9, 2024
1 parent ad4f43d commit be39ac3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions datafusion/expr-common/src/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ impl Operator {
)
}

/// Return true if the comparison operator can be used in interval arithmetic and constraint
/// propagation
///
/// For example, 'Binary(a, >, b)' expression supports propagation.
#[deprecated(since = "43.0.0", note = "please use `supports_propagation` instead")]
pub fn is_comparison_operator(&self) -> bool {
self.supports_propagation()
}

/// Return true if the operator is a logic operator.
///
/// For example, 'Binary(Binary(a, >, b), AND, Binary(a, <, b + 3))' would
Expand Down

0 comments on commit be39ac3

Please sign in to comment.