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

MergeProjectRule should not construct RexPrograms for simple mappings

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.1-incubating
    • Component/s: None
    • Labels:
      None

      Description

      MergeProjectRule should not construct RexPrograms when it is dealing with projections that are simple mappings or permutations. It can combine the mappings using less computation and memory.

      Further, if either of the projects is the identity, MergeProjectRule should do nothing; it should let RemoveTrivialProjectRule deal with it.

      This should reduce the amount of memory required for complex planning, in particular when there are large joins and many calls to SwapJoinRule. OPTIQ-62 is a better but more complex solution to the same issue.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: