From 32ad0c6810636e202b6efd09c59d3db9d2307764 Mon Sep 17 00:00:00 2001 From: hjxilinx Date: Sat, 18 Apr 2020 18:16:08 +0800 Subject: [PATCH] [td-98] fix empty table in super table caused client crash. --- src/client/src/tscSQLParser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index c541a35d12..befb8fcad1 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4675,8 +4675,8 @@ int32_t parseLimitClause(SQueryInfo* pQueryInfo, int32_t clauseIndex, SQuerySQL* } // No tables included. No results generated. Query results are empty. - if (pTableMetaInfo->pTableMeta == NULL) { - tscTrace("%p no table in metricmeta, no output result", pSql); + if (pTableMetaInfo->vgroupList->numOfVgroups == 0) { + tscTrace("%p no table in super table, no output result", pSql); pQueryInfo->command = TSDB_SQL_RETRIEVE_EMPTY_RESULT; } -- GitLab