Skip to content
Permalink
Browse files
[NO ISSUE][OTH] Add operator field to subplan json plan
- user model changes: no
- storage format changes: no
- interface changes: no

Details:

- Add "operator" field to subplan operators json format
  plan.

Change-Id: I1df5a97367286663b002547997c555b20e56697d
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/11123
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
  • Loading branch information
mhubail committed Apr 21, 2021
1 parent 2323a4c commit d5eb016761601e66a2fdd66c8cd8cc72cf248a03
Showing 1 changed file with 7 additions and 2 deletions.
@@ -411,8 +411,13 @@ public Void visitProjectOperator(ProjectOperator op, Void indent) throws Algebri

@Override
public Void visitSubplanOperator(SubplanOperator op, Void indent) throws AlgebricksException {
if (!op.getNestedPlans().isEmpty()) {
writeNestedPlans(op, indent);
try {
if (!op.getNestedPlans().isEmpty()) {
jsonGenerator.writeStringField(OPERATOR_FIELD, "subplan");
writeNestedPlans(op, indent);
}
} catch (IOException e) {
throw AlgebricksException.create(ErrorCode.ERROR_PRINTING_PLAN, e, String.valueOf(e));
}
return null;
}

0 comments on commit d5eb016

Please sign in to comment.