Added Impl for getSubExecutionPlans method
@@ -8,6 +8,7 @@ import com.orientechnologies.orient.core.sql.parser.OLocalResultSet;
import com.orientechnologies.orient.core.sql.parser.OStatement;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
/**
@@ -45,6 +46,8 @@ public class GlobalLetQueryStep extends AbstractExecutionStep {
executed = true;
}
+
+
private List<OResult> toList(OLocalResultSet oLocalResultSet) {
List<OResult> result = new ArrayList<>();
while (oLocalResultSet.hasNext()) {
@@ -60,6 +63,11 @@ public class GlobalLetQueryStep extends AbstractExecutionStep {
spaces + " " + varName + " = \n" + box(spaces+" ", this.subExecutionPlan.prettyPrint(0, indent));
}
+ @Override
+ public List<OExecutionPlan> getSubExecutionPlans() {
+ return Collections.singletonList(this.subExecutionPlan);
+ }
+
private String box(String spaces, String s) {
String[] rows = s.split("\n");
StringBuilder result = new StringBuilder();
