diff --git a/src/client/src/tscServer.c b/src/client/src/tscServer.c index 32a4df4963f42d51819e95515a0f740fb549727f..f1ef394b8fb81a73beef57a2c2262062b0a00d21 100644 --- a/src/client/src/tscServer.c +++ b/src/client/src/tscServer.c @@ -1677,9 +1677,10 @@ int tscProcessTableMetaRsp(SSqlObj *pSql) { pMetaMsg->contLen = htons(pMetaMsg->contLen); pMetaMsg->numOfColumns = htons(pMetaMsg->numOfColumns); - if (pMetaMsg->sid <= 0 || pMetaMsg->vgroup.vgId < 2 || pMetaMsg->vgroup.numOfEps <= 0) { - tscError("invalid value in table numOfEps:%d, vgId:%d sid%d", pMetaMsg->vgroup.numOfEps, - pMetaMsg->vgroup.vgId, pMetaMsg->sid); + if ((pMetaMsg->tableType == TSDB_SUPER_TABLE) && + (pMetaMsg->sid <= 0 || pMetaMsg->vgroup.vgId < 2 || pMetaMsg->vgroup.numOfEps <= 0)) { + tscError("invalid value in table numOfEps:%d, vgId:%d sid%d", pMetaMsg->vgroup.numOfEps, pMetaMsg->vgroup.vgId, + pMetaMsg->sid); return TSDB_CODE_TSC_INVALID_VALUE; }