Skip to content

Commit ee705f5

Browse files
committed
Implement comparisons for Int64Decimal
1 parent e91265e commit ee705f5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

arrow/src/array/ord.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,27 @@ pub fn build_compare(left: &Array, right: &Array) -> Result<DynComparator> {
126126
(Int16, Int16) => compare_primitives::<Int16Type>(left, right),
127127
(Int32, Int32) => compare_primitives::<Int32Type>(left, right),
128128
(Int64, Int64) => compare_primitives::<Int64Type>(left, right),
129+
(Int64Decimal(0), Int64Decimal(0)) => {
130+
compare_primitives::<Int64Decimal0Type>(left, right)
131+
}
132+
(Int64Decimal(1), Int64Decimal(1)) => {
133+
compare_primitives::<Int64Decimal1Type>(left, right)
134+
}
135+
(Int64Decimal(2), Int64Decimal(2)) => {
136+
compare_primitives::<Int64Decimal2Type>(left, right)
137+
}
138+
(Int64Decimal(3), Int64Decimal(3)) => {
139+
compare_primitives::<Int64Decimal3Type>(left, right)
140+
}
141+
(Int64Decimal(4), Int64Decimal(4)) => {
142+
compare_primitives::<Int64Decimal4Type>(left, right)
143+
}
144+
(Int64Decimal(5), Int64Decimal(5)) => {
145+
compare_primitives::<Int64Decimal5Type>(left, right)
146+
}
147+
(Int64Decimal(10), Int64Decimal(10)) => {
148+
compare_primitives::<Int64Decimal10Type>(left, right)
149+
}
129150
(Float32, Float32) => compare_float::<Float32Type>(left, right),
130151
(Float64, Float64) => compare_float::<Float64Type>(left, right),
131152
(Date32, Date32) => compare_primitives::<Date32Type>(left, right),

0 commit comments

Comments
 (0)