Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5170

Assertion error on range distribution creation

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            rkondakov Roman Kondakov
            rkondakov Roman Kondakov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m