Support GroupReference in PlanPrinter
@@ -38,6 +38,7 @@ import com.facebook.presto.sql.planner.PartitioningScheme;
import com.facebook.presto.sql.planner.PlanFragment;
import com.facebook.presto.sql.planner.SubPlan;
import com.facebook.presto.sql.planner.Symbol;
+import com.facebook.presto.sql.planner.iterative.GroupReference;
import com.facebook.presto.sql.planner.plan.AggregationNode;
import com.facebook.presto.sql.planner.plan.ApplyNode;
import com.facebook.presto.sql.planner.plan.AssignUniqueId;
@@ -1097,6 +1098,14 @@ public class PlanPrinter
return processChildren(node, indent + 1);
}
+ @Override
+ public Void visitGroupReference(GroupReference node, Integer indent)
+ {
+ print(indent, "- GroupReference[%s] => [%s]", node.getGroupId(), formatOutputs(node.getOutputSymbols()));
+
+ return processChildren(node, indent + 1);
+ }
+
@Override
public Void visitApply(ApplyNode node, Integer indent)
{
