Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.30.0
Description
An assertion error occurs on range distribution creation. This test fails:
@Test void testRangeRelDistributionKeys() { RelDistributions.range(Arrays.asList(0, 1)); }
This happens because there is an incorrect assertion in RelDistributionImpl constructor:
assert type == Type.HASH_DISTRIBUTED
|| type == Type.RANDOM_DISTRIBUTED
|| keys.isEmpty();
It should be RANGE_DISTRIBUTED instead of RANDOM_DISTRIBUTED