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

HepPlanner doesn't clear metadata cache for the ancestors of discarded node when a transformation happens

    XMLWordPrintableJSON

    Details

      Description

      In HepPlanner, when a transformation happens, it will clear metadata cache for the parent of the discarded node[1]. But it doesn't clear the metadata cache for the ancestors of the parent. For example, assume we get a logical plan like

      A

        \

         B

           \

            C

      , if we clear the metadata cache for C after applying a rule, we should also clear the metadata cache for A and B since metadata of A and B derive from C.

       

      [1]https://github.com/apache/calcite/blob/master/core/src/main/java/org/apache/calcite/plan/hep/HepPlanner.java#L877

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Chunwei Lei Chunwei Lei
                Reporter:
                Chunwei Lei Chunwei Lei
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 1h 40m
                  1h 40m