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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0-incubating
    • Component/s: None
    • Labels:
      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

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              julianhyde Julian Hyde

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment