From 1eb6608d5508600a4ca0bab51194b64efe1e0efd Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Tue, 31 May 2022 15:07:03 +0800 Subject: [PATCH] fix(query): V24 mixed operator column calc output size error --- src/client/src/tscSubquery.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index 07de0cf3ee..aefec7dc9d 100644 --- a/src/client/src/tscSubquery.c +++ b/src/client/src/tscSubquery.c @@ -3922,7 +3922,9 @@ void* createQInfoFromQueryNode(SQueryInfo* pQueryInfo, STableGroupInfo* pTableGr } else if (pQueryAttr->pExpr2 != NULL) { pEx = pQueryAttr->pExpr2; num = pQueryAttr->numOfExpr2; - } else { + } + + if ( num < pQueryAttr->numOfOutput) { pEx = pQueryAttr->pExpr1; num = pQueryAttr->numOfOutput; } -- GitLab