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

Enable AggregateProjectMergeRule in standard rule set

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0-incubating
    • None
    • None

    Description

      If you have a simple Project that just re-orders or renames fields, or projects a subset, and it is directly beneath an Aggregate, then the Aggregate can be rewritten in terms of the Project's input.

      This rule should also apply if the project computes expressions, if those expressions are not used.

      This rule will help AggegateJoinTransposeRule apply in more cases. For example, it cannot currently apply to

      select distinct dept.deptno from emp join dept using (deptno)

      because the join projects 2 columns and the aggregate only uses one.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment