diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 1b1388238ca7775d1f8ee0127448c6e9d0dd22c2..7dcb554494ab0095a0102078e690ff0f54a7ed0e 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -790,7 +790,7 @@ int tscBuildQueryMsg(SSqlObj *pSql, SSqlInfo *pInfo) { size_t output = tscNumOfFields(pQueryInfo); if ((tscIsSecondStageQuery(pQueryInfo) || UTIL_TABLE_IS_NORMAL_TABLE(pTableMetaInfo) || - UTIL_TABLE_IS_CHILD_TABLE(pTableMetaInfo)) && (output != tscSqlExprNumOfExprs(pQueryInfo))) { + UTIL_TABLE_IS_CHILD_TABLE(pTableMetaInfo))) { pQueryMsg->secondStageOutput = htonl((int32_t) output); SSqlFuncMsg *pSqlFuncExpr1 = (SSqlFuncMsg *)pMsg;