Skip to content

Commit 31c0d8f

Browse files
committed
feat: Support Null ordering
1 parent d55f664 commit 31c0d8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arrow/src/array/ord.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ pub fn build_compare(left: &dyn Array, right: &dyn Array) -> Result<DynComparato
230230
let right: DecimalArray = DecimalArray::from(right.data().clone());
231231
Box::new(move |i, j| left.value(i).cmp(&right.value(j)))
232232
}
233+
(Null, Null) => Box::new(|_, _| Ordering::Equal),
233234
(lhs, _) => {
234235
return Err(ArrowError::InvalidArgumentError(format!(
235236
"The data type type {:?} has no natural order",

0 commit comments

Comments
 (0)