Skip to content

Commit

Permalink
feat: Support Null ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
MazterQyou committed Jan 19, 2024
1 parent d55f664 commit 31c0d8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arrow/src/array/ord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ pub fn build_compare(left: &dyn Array, right: &dyn Array) -> Result<DynComparato
let right: DecimalArray = DecimalArray::from(right.data().clone());
Box::new(move |i, j| left.value(i).cmp(&right.value(j)))
}
(Null, Null) => Box::new(|_, _| Ordering::Equal),
(lhs, _) => {
return Err(ArrowError::InvalidArgumentError(format!(
"The data type type {:?} has no natural order",
Expand Down

0 comments on commit 31c0d8f

Please sign in to comment.