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

Remove outdated graph edges in HepPlanner

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.28.0
    • None

    Description

       

      After we use HepPlanner to optimize the RelNode,  we need to replace old RelNode with the optimized RelNode, and update the graph in HepPlanner, but calcite only remove the outdated RelNode(HepRelVertex) in line 970, the edges between these vertices are still in the graph, which may cause a memory leak? IMO, I think maybe we should also remove the outdated edge.

      Attachments

        1. image-2021-08-19-12-12-41-534.png
          299 kB
          Jianhui Dong

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lam167 Jianhui Dong
              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 - 2h 50m
                  2h 50m