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

RelMdMinRowCount doesn't take into account UNION DISTINCT

    XMLWordPrintableJSON

Details

    Description

      When computing minRowCount for Union, it doesn't task into account UNION DISTINCT.

      public Double getMinRowCount(Union rel, RelMetadataQuery mq) {
        double rowCount = 0.0;
        for (RelNode input : rel.getInputs()) {
          Double partialRowCount = mq.getMinRowCount(input);
          if (partialRowCount != null) {
            rowCount += partialRowCount;
          }
        }
        return rowCount;
      }
      

      Attachments

        Issue Links

          Activity

            People

              Chunwei Lei Chunwei Lei
              Chunwei Lei Chunwei Lei
              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 - 1h 40m
                  1h 40m