diff --git a/arrow/src/array/ord.rs b/arrow/src/array/ord.rs index 9b906b02b1dd..085201d575b2 100644 --- a/arrow/src/array/ord.rs +++ b/arrow/src/array/ord.rs @@ -126,6 +126,7 @@ pub fn build_compare(left: &Array, right: &Array) -> Result { (Int16, Int16) => compare_primitives::(left, right), (Int32, Int32) => compare_primitives::(left, right), (Int64, Int64) => compare_primitives::(left, right), + (Int96, Int96) => compare_primitives::(left, right), (Int64Decimal(0), Int64Decimal(0)) => { compare_primitives::(left, right) } @@ -147,6 +148,27 @@ pub fn build_compare(left: &Array, right: &Array) -> Result { (Int64Decimal(10), Int64Decimal(10)) => { compare_primitives::(left, right) } + (Int96Decimal(0), Int96Decimal(0)) => { + compare_primitives::(left, right) + } + (Int96Decimal(1), Int96Decimal(1)) => { + compare_primitives::(left, right) + } + (Int96Decimal(2), Int96Decimal(2)) => { + compare_primitives::(left, right) + } + (Int96Decimal(3), Int96Decimal(3)) => { + compare_primitives::(left, right) + } + (Int96Decimal(4), Int96Decimal(4)) => { + compare_primitives::(left, right) + } + (Int96Decimal(5), Int96Decimal(5)) => { + compare_primitives::(left, right) + } + (Int96Decimal(10), Int96Decimal(10)) => { + compare_primitives::(left, right) + } (Float32, Float32) => compare_float::(left, right), (Float64, Float64) => compare_float::(left, right), (Date32, Date32) => compare_primitives::(left, right),