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

Intersect in RelMdRowCount doesn't take into account 'intersect all'

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.24.0
    • None
    • None

    Description

      Same as https://issues.apache.org/jira/browse/CALCITE-3287.
      Intersect in RelMdRowCount.java doesn't take into account 'intersect all' .

      public Double getRowCount(Intersect rel, RelMetadataQuery mq) {
          Double rowCount = null;
          for (RelNode input : rel.getInputs()) {
            Double partialRowCount = mq.getRowCount(input);
            if (rowCount == null
                || partialRowCount != null && partialRowCount < rowCount) {
              rowCount = partialRowCount;
            }
          }
          return rowCount;
        }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            xzh_dz xzh_dz
            Votes:
            0 Vote for this issue
            Watchers:
            5 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 - 0.5h
                0.5h