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

MergeProjectRule should not construct RexPrograms for simple mappings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.1-incubating
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: