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

Support view partial rewriting in join materialized view rewriting

    XMLWordPrintableJSON

Details

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

    Description

      Simple extension for AbstractMaterializedViewRule to support case when view contains a subset of the tables of the query and tables are joined in different order in the query and view plans.

      For instance:
      View (m0): (A JOIN B) JOIN C
      Query: (((A JOIN B) JOIN D) JOIN C) JOIN E
      MV rewriting: ((m0 JOIN D) JOIN E)

      Basically, once we have found the missing tables, we add them to the view and view plan. Then the rewriting algorithm works the same way and will enforce any predicate that is in the query and not in the view.

      Attachments

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: