Skip to content

Commit 219c131

Browse files
committed
Allow reasonable boolean comparisons
1 parent f9ab93f commit 219c131

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arrow/src/compute/kernels/comparison.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,6 +2363,7 @@ pub fn neq_dyn(left: &dyn Array, right: &dyn Array) -> Result<BooleanArray> {
23632363
/// let result = lt_dyn(&array1, &array2).unwrap();
23642364
/// assert_eq!(BooleanArray::from(vec![Some(true), Some(false), None]), result);
23652365
/// ```
2366+
#[allow(clippy::bool_comparison)]
23662367
pub fn lt_dyn(left: &dyn Array, right: &dyn Array) -> Result<BooleanArray> {
23672368
match left.data_type() {
23682369
DataType::Dictionary(_, _) => {
@@ -2410,6 +2411,7 @@ pub fn lt_eq_dyn(left: &dyn Array, right: &dyn Array) -> Result<BooleanArray> {
24102411
/// let result = gt_dyn(&array1, &array2).unwrap();
24112412
/// assert_eq!(BooleanArray::from(vec![Some(true), Some(false), None]), result);
24122413
/// ```
2414+
#[allow(clippy::bool_comparison)]
24132415
pub fn gt_dyn(left: &dyn Array, right: &dyn Array) -> Result<BooleanArray> {
24142416
match left.data_type() {
24152417
DataType::Dictionary(_, _) => {

0 commit comments

Comments
 (0)