From 2c89f46a4cc8e4441061e75c78b853db990227fc Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Thu, 14 Oct 2021 09:42:59 +0800 Subject: [PATCH] :add op_project when two stage stable query(since order by ts) with arithm expression(e.g. pow + 2) --- src/query/src/qPlan.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/query/src/qPlan.c b/src/query/src/qPlan.c index abfa20714b..913887a65b 100644 --- a/src/query/src/qPlan.c +++ b/src/query/src/qPlan.c @@ -697,6 +697,11 @@ SArray* createGlobalMergePlan(SQueryAttr* pQueryAttr) { taosArrayPush(plan, &op); } + if (pQueryAttr->pExpr2 != NULL) { + op = OP_Project; + taosArrayPush(plan, &op); + } + } else { if (pQueryAttr->pExpr2 != NULL) { op = OP_Project; taosArrayPush(plan, &op); -- GitLab