Class MeasureRules.ProjectMeasureRule

All Implemented Interfaces:
TransformationRule
Enclosing class:
MeasureRules

public static class MeasureRules.ProjectMeasureRule extends RelRule<MeasureRules.ProjectMeasureRuleConfig> implements TransformationRule
Rule that merges an Aggregate onto a Project.

Converts


 Aggregate(a, b, SINGLE_VALUE(d) AS e)
   Project(a, b, M2X(M2V(SUM(c) + 1), SAME_PARTITION(a, b)) AS d)
     R
 

to


 Project(a, b, sum_c + 1 AS e),
   Aggregate(a, b, SUM(c) AS sum_c)
     R
 
See Also: