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

Some Rules not firing due to RelMdPredicates returning null in VolcanoPlanner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.39.0
    • None

    Description

      Because getPredicates(RelSubset r, RelMetadataQuery mq) returns null by default, some rules will not work in volcanoPlanner. Such as SortRemoveConstantKeysRule, UnionPullUpConstantsRule, ExchangeRemoveConstantKeysRule, AggregateJoinTransposeRule, ReduceExpressionsRule, etc. 

      public RelOptPredicateList getPredicates(RelSubset r,
          RelMetadataQuery mq) {
        if (!Bug.CALCITE_1048_FIXED) {
          return RelOptPredicateList.EMPTY;
        } 
      }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              suibianwanwan33 suibianwanwan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: