@Override protected void toThrift(TPlanNode msg) { msg.node_type = TPlanNodeType.AGGREGATION_NODE; msg.agg_node = new TAggregationNode( Expr.treesToThrift(aggInfo.getAggregateExprs()), aggInfo.getAggTupleId().asInt(), needsFinalize); List<Expr> groupingExprs = aggInfo.getGroupingExprs(); if (groupingExprs != null) { msg.agg_node.setGrouping_exprs(Expr.treesToThrift(groupingExprs)); } }
@Override protected void toThrift(TPlanNode msg) { // TODO: retire this once the migration to the new plan is complete msg.hdfs_scan_node = new THdfsScanNode(desc.getId().asInt()); msg.node_type = TPlanNodeType.HDFS_SCAN_NODE; }