From e6842e22569eab4213c6e93f2476669b5ffeddad Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Fri, 16 Jul 2021 18:55:56 +0800 Subject: [PATCH] [td-5278]: enable the show queries display the projection query on super tables. --- src/client/src/tscUtil.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 89749202ef..720327e327 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -2437,7 +2437,9 @@ void tscDoQuery(SSqlObj* pSql) { SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex); uint16_t type = pQueryInfo->type; - if ((pCmd->command == TSDB_SQL_SELECT) && (!TSDB_QUERY_HAS_TYPE(type, TSDB_QUERY_TYPE_SUBQUERY)) && (!TSDB_QUERY_HAS_TYPE(type, TSDB_QUERY_TYPE_STABLE_SUBQUERY))) { + if ((pCmd->command == TSDB_SQL_SELECT) && (((!TSDB_QUERY_HAS_TYPE(type, TSDB_QUERY_TYPE_SUBQUERY)) && + (!TSDB_QUERY_HAS_TYPE(type, TSDB_QUERY_TYPE_STABLE_SUBQUERY))) || + (tscIsProjectionQuery(pQueryInfo)))) { tscAddIntoSqlList(pSql); } -- GitLab