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

The digests are not same for the common sub-expressions in HepPlanner

    Details

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

      Description

      The digests are not same for the same sub-query.
      like query

      select * from (select * from dept union all select * from dept)a;
      

      When run the query, The union relNode has two inputs, and it's same expectly and it's the same object instead of the print of plan, but Now they are not same.
      And for Test testReplaceCommonSubexpression, the rule is only firing once, but now it's two.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                perid007 LeoWangLZ
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: