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

HintStrategy rule exclusion does not match innermost rels

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.33.0
    • core

    Description

      In CALCITE-3781, calcite can specify a hint for a relNode to let the planner exclude some rule when optimze. But as julianhyde said, it's strange to only check for the rels[0]. If we have a rule to push a common project to the source scan, we want to prevent the common project optimized from the ProjectMerge Rule, it can not work, as the preserved one is at the bottom.
      So I proposal to check all the rels for the rule.

      Attachments

        Issue Links

          Activity

            People

              aitozi WenJun Min
              aitozi WenJun Min
              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 - 2.5h
                  2.5h