From 26825f0730ee4dcb885aca7a3143e2ae6fca5d8e Mon Sep 17 00:00:00 2001 From: Pierre GIRAUD Date: Fri, 23 Aug 2024 11:18:31 +0200 Subject: [PATCH] Don't try to convert Aggregate node without Strategy If Strategy property is present this means that it comes from JSON. Without this prop, the node doesn't need to be converted. --- src/services/plan-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/plan-service.ts b/src/services/plan-service.ts index 94a8086e..12e3937f 100644 --- a/src/services/plan-service.ts +++ b/src/services/plan-service.ts @@ -1245,7 +1245,7 @@ export class PlanService { private convertNodeType(node: Node): void { // Convert some node type (possibly from JSON source) to match the TEXT format - if (node[NodeProp.NODE_TYPE] == "Aggregate") { + if (node[NodeProp.NODE_TYPE] == "Aggregate" && node[NodeProp.STRATEGY]) { let prefix = "" switch (node[NodeProp.STRATEGY]) { case "Sorted":