Skip to content

Commit 5b29b43

Browse files
timofey-stepanovcopybara-github
authored andcommitted
Support UNIT for comparison operators in Arolla
Pointless behavior, but the goal is to be consistent with `*rank*` operators, PiperOrigin-RevId: 714940394 Change-Id: I839ad3abf9fe37e7bc7f6a181886afe672fdc790
1 parent 8e12877 commit 5b29b43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

koladata/operators/comparison.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ bool HasOrderedType(const DataSlice& slice) {
5050
schema::IsImplicitlyCastableTo(narrowed_schema,
5151
internal::DataItem(schema::kString)) ||
5252
schema::IsImplicitlyCastableTo(narrowed_schema,
53-
internal::DataItem(schema::kBool));
53+
internal::DataItem(schema::kBool)) ||
54+
schema::IsImplicitlyCastableTo(narrowed_schema,
55+
internal::DataItem(schema::kMask));
5456
}
5557

5658
// Returns OK if the DataSlices contain values that can be ordered.

0 commit comments

Comments
 (0)