Skip to content

Commit 1e8b532

Browse files
Align vector ordering with PostgreSQL NULL semantics
1 parent d868e5b commit 1e8b532

File tree

1 file changed

+4
-6
lines changed
  • datafusion/common/src/utils

1 file changed

+4
-6
lines changed

datafusion/common/src/utils/mod.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,25 +1027,23 @@ mod tests {
10271027
Null,
10281028
ScalarValue::Int32(Some(0)),
10291029
]
1030-
.partial_cmp(&vec![
1030+
< vec![
10311031
ScalarValue::Int32(Some(2)),
10321032
Null,
10331033
ScalarValue::Int32(Some(1)),
1034-
])
1035-
.is_none()
1034+
]
10361035
);
10371036
assert!(
10381037
vec![
10391038
ScalarValue::Int32(Some(2)),
10401039
ScalarValue::Int32(None),
10411040
ScalarValue::Int32(Some(0)),
10421041
]
1043-
.partial_cmp(&vec![
1042+
< vec![
10441043
ScalarValue::Int32(Some(2)),
10451044
ScalarValue::Int32(None),
10461045
ScalarValue::Int32(Some(1)),
1047-
])
1048-
.is_none()
1046+
]
10491047
);
10501048
}
10511049

0 commit comments

Comments
 (0)