We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b09d031 commit dc0ad13Copy full SHA for dc0ad13
vortex-compute/src/comparison/datum.rs
@@ -1,6 +1,7 @@
1
// SPDX-License-Identifier: Apache-2.0
2
// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4
+use vortex_error::vortex_panic;
5
use vortex_vector::BinaryViewDatum;
6
use vortex_vector::BoolDatum;
7
use vortex_vector::Datum;
@@ -41,7 +42,7 @@ where
41
42
(TypedDatum::Decimal(d1), TypedDatum::Decimal(d2)) => d1.compare(d2),
43
(TypedDatum::String(d1), TypedDatum::String(d2)) => d1.compare(d2),
44
(TypedDatum::Binary(d1), TypedDatum::Binary(d2)) => d1.compare(d2),
- _ => unreachable!(""),
45
+ _ => vortex_panic!("cannot compare different typed datums."),
46
}
47
48
0 commit comments