|
@@ -438,12 +438,12 @@ public final class PlanNamedTypes {
|
|
}
|
|
}
|
|
|
|
|
|
static EvalExec readEvalExec(PlanStreamInput in) throws IOException {
|
|
static EvalExec readEvalExec(PlanStreamInput in) throws IOException {
|
|
- return new EvalExec(Source.EMPTY, in.readPhysicalPlanNode(), readNamedExpressions(in));
|
|
|
|
|
|
+ return new EvalExec(Source.EMPTY, in.readPhysicalPlanNode(), readAliases(in));
|
|
}
|
|
}
|
|
|
|
|
|
static void writeEvalExec(PlanStreamOutput out, EvalExec evalExec) throws IOException {
|
|
static void writeEvalExec(PlanStreamOutput out, EvalExec evalExec) throws IOException {
|
|
out.writePhysicalPlanNode(evalExec.child());
|
|
out.writePhysicalPlanNode(evalExec.child());
|
|
- writeNamedExpressions(out, evalExec.fields());
|
|
|
|
|
|
+ writeAliases(out, evalExec.fields());
|
|
}
|
|
}
|
|
|
|
|
|
static EnrichExec readEnrichExec(PlanStreamInput in) throws IOException {
|
|
static EnrichExec readEnrichExec(PlanStreamInput in) throws IOException {
|
|
@@ -582,12 +582,12 @@ public final class PlanNamedTypes {
|
|
}
|
|
}
|
|
|
|
|
|
static RowExec readRowExec(PlanStreamInput in) throws IOException {
|
|
static RowExec readRowExec(PlanStreamInput in) throws IOException {
|
|
- return new RowExec(Source.EMPTY, readNamedExpressions(in));
|
|
|
|
|
|
+ return new RowExec(Source.EMPTY, readAliases(in));
|
|
}
|
|
}
|
|
|
|
|
|
static void writeRowExec(PlanStreamOutput out, RowExec rowExec) throws IOException {
|
|
static void writeRowExec(PlanStreamOutput out, RowExec rowExec) throws IOException {
|
|
assert rowExec.children().size() == 0;
|
|
assert rowExec.children().size() == 0;
|
|
- writeNamedExpressions(out, rowExec.fields());
|
|
|
|
|
|
+ writeAliases(out, rowExec.fields());
|
|
}
|
|
}
|
|
|
|
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
@@ -655,12 +655,12 @@ public final class PlanNamedTypes {
|
|
}
|
|
}
|
|
|
|
|
|
static Eval readEval(PlanStreamInput in) throws IOException {
|
|
static Eval readEval(PlanStreamInput in) throws IOException {
|
|
- return new Eval(Source.EMPTY, in.readLogicalPlanNode(), readNamedExpressions(in));
|
|
|
|
|
|
+ return new Eval(Source.EMPTY, in.readLogicalPlanNode(), readAliases(in));
|
|
}
|
|
}
|
|
|
|
|
|
static void writeEval(PlanStreamOutput out, Eval eval) throws IOException {
|
|
static void writeEval(PlanStreamOutput out, Eval eval) throws IOException {
|
|
out.writeLogicalPlanNode(eval.child());
|
|
out.writeLogicalPlanNode(eval.child());
|
|
- writeNamedExpressions(out, eval.fields());
|
|
|
|
|
|
+ writeAliases(out, eval.fields());
|
|
}
|
|
}
|
|
|
|
|
|
static Enrich readEnrich(PlanStreamInput in) throws IOException {
|
|
static Enrich readEnrich(PlanStreamInput in) throws IOException {
|
|
@@ -772,6 +772,14 @@ public final class PlanNamedTypes {
|
|
out.writeCollection(namedExpressions, writerFromPlanWriter(PlanStreamOutput::writeNamedExpression));
|
|
out.writeCollection(namedExpressions, writerFromPlanWriter(PlanStreamOutput::writeNamedExpression));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private static List<Alias> readAliases(PlanStreamInput in) throws IOException {
|
|
|
|
+ return in.readList(readerFromPlanReader(PlanNamedTypes::readAlias));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ static void writeAliases(PlanStreamOutput out, List<Alias> aliases) throws IOException {
|
|
|
|
+ out.writeCollection(aliases, writerFromPlanWriter(PlanNamedTypes::writeAlias));
|
|
|
|
+ }
|
|
|
|
+
|
|
static FieldAttribute readFieldAttribute(PlanStreamInput in) throws IOException {
|
|
static FieldAttribute readFieldAttribute(PlanStreamInput in) throws IOException {
|
|
return new FieldAttribute(
|
|
return new FieldAttribute(
|
|
Source.EMPTY,
|
|
Source.EMPTY,
|