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

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

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.24.0
    • Component/s: None
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              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