diff --git a/tests/army/cmdline/taosCli.py b/tests/army/cmdline/taosCli.py index 3248ac85ba..d446a25c86 100644 --- a/tests/army/cmdline/taosCli.py +++ b/tests/army/cmdline/taosCli.py @@ -44,8 +44,12 @@ class TDTestCase(TBase): # insert json = "cmdline/json/taosCli.json" db, stb, childCount, insertRows = self.insertBenchJson(json) + # describe sql = f"describe {db}.{stb};" - # check result + tdSql.query(sql) + tdSql.checkRows(2 + 1000) + # desc + sql = f"desc {db}.{stb};" tdSql.query(sql) tdSql.checkRows(2 + 1000) diff --git a/tools/shell/src/shellEngine.c b/tools/shell/src/shellEngine.c index 6d56aa7fe2..5ddf773dbb 100644 --- a/tools/shell/src/shellEngine.c +++ b/tools/shell/src/shellEngine.c @@ -730,6 +730,10 @@ bool shellIsShowWhole(const char *sql) { if (taosStrCaseStr(sql, "describe ") != NULL) { return true; } + // desc + if (taosStrCaseStr(sql, "desc ") != NULL) { + return true; + } // show if (taosStrCaseStr(sql, "show ") != NULL) { return true;