Skip to content

Commit dc0ad13

Browse files
committed
wip
Signed-off-by: Joe Isaacs <[email protected]>
1 parent b09d031 commit dc0ad13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vortex-compute/src/comparison/datum.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// SPDX-FileCopyrightText: Copyright the Vortex contributors
33

4+
use vortex_error::vortex_panic;
45
use vortex_vector::BinaryViewDatum;
56
use vortex_vector::BoolDatum;
67
use vortex_vector::Datum;
@@ -41,7 +42,7 @@ where
4142
(TypedDatum::Decimal(d1), TypedDatum::Decimal(d2)) => d1.compare(d2),
4243
(TypedDatum::String(d1), TypedDatum::String(d2)) => d1.compare(d2),
4344
(TypedDatum::Binary(d1), TypedDatum::Binary(d2)) => d1.compare(d2),
44-
_ => unreachable!(""),
45+
_ => vortex_panic!("cannot compare different typed datums."),
4546
}
4647
}
4748
}

0 commit comments

Comments
 (0)