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

RelNode description includes all tree when recomputed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.19.0
    • Component/s: core
    • Labels:
      None

      Description

      The initial AbstractRelNode description is `typeName#id` but when recomputed, it includes all its inputs (and other attributes).

      When creating the final plan, HepPlanner visits each node bottom up, and recomputes the node digest. This causes node description to grow in size, up to the top node which contains basically a string copy of the whole tree. On large trees, this may consume a non-significant amount of memory.

      See email thread: https://lists.apache.org/thread.html/5e71c9f2b4e83865805841708f53471cfab1b5de673e6f162b68edc9@%3Cdev.calcite.apache.org%3E

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                laurent Laurent Goujon
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: