[ 
https://issues.apache.org/jira/browse/CALCITE-5170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chunwei Lei resolved CALCITE-5170.
----------------------------------
    Resolution: Fixed

Fixed in 
[https://github.com/apache/calcite/commit/a5af80642787e3f1d24671d3a6339568d0c6b201|https://github.com/apache/calcite/commit/a5af80642787e3f1d24671d3a6339568d0c6b201.].
 Thank you for your PR, [~rkondakov]!

> Assertion error on range distribution creation
> ----------------------------------------------
>
>                 Key: CALCITE-5170
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5170
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.30.0
>            Reporter: Roman Kondakov
>            Assignee: Roman Kondakov
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.31.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> An assertion error occurs on range distribution creation. This test fails:
> {code:java}
> @Test void testRangeRelDistributionKeys() {
>     RelDistributions.range(Arrays.asList(0, 1));
> }
> {code}
> This happens because there is an incorrect assertion in 
> {{RelDistributionImpl}} constructor:
> {code:java}
>       assert type == Type.HASH_DISTRIBUTED
>           || type == Type.RANDOM_DISTRIBUTED
>           || keys.isEmpty();
> {code}
> It should be  {{RANGE_DISTRIBUTED}} instead of {{RANDOM_DISTRIBUTED}}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to