From 455a977452c72584011b7dea7bfe54a03eb876ac Mon Sep 17 00:00:00 2001 From: xywang Date: Thu, 9 Sep 2021 15:33:04 +0800 Subject: [PATCH] [TD-2573]: fixed arithmetic error for ceil, floor and round --- src/query/src/qPlan.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/query/src/qPlan.c b/src/query/src/qPlan.c index e01f41276f..def144b4c3 100644 --- a/src/query/src/qPlan.c +++ b/src/query/src/qPlan.c @@ -638,6 +638,12 @@ SArray* createExecOperatorPlan(SQueryAttr* pQueryAttr) { } else { op = OP_Project; taosArrayPush(plan, &op); + + if (pQueryAttr->pExpr2 != NULL) { + op = OP_Project; + taosArrayPush(plan, &op); + } + if (pQueryAttr->distinct) { op = OP_Distinct; taosArrayPush(plan, &op); -- GitLab