[td-225]
This commit is contained in:
parent
315ce829e5
commit
644bed2dad
|
@ -7546,14 +7546,14 @@ int32_t validateSqlNode(SSqlObj* pSql, SSqlNode* pSqlNode, SQueryInfo* pQueryInf
|
|||
}
|
||||
|
||||
if (tscQueryTags(pQueryInfo)) {
|
||||
SExprInfo* pExpr1 = tscSqlExprGet(pQueryInfo, 0);
|
||||
SExprInfo* pExpr1 = tscExprGet(pQueryInfo, 0);
|
||||
|
||||
if (pExpr1->base.functionId != TSDB_FUNC_TID_TAG) {
|
||||
int32_t numOfCols = (int32_t)taosArrayGetSize(pQueryInfo->colList);
|
||||
for (int32_t i = 0; i < numOfCols; ++i) {
|
||||
SColumn* pCols = taosArrayGetP(pQueryInfo->colList, i);
|
||||
if (pCols->info.flist.numOfFilters > 0) {
|
||||
return invalidSqlErrMsg(tscGetErrorMsgPayload(pCmd), msg9);
|
||||
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), msg9);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1920,13 +1920,13 @@ static SVgroupsInfo* createVgroupInfoFromMsg(char* pMsg, int32_t* size, uint64_t
|
|||
SVgroupsInfo *pVgroupInfo = calloc(1, vgroupsz);
|
||||
assert(pVgroupInfo != NULL);
|
||||
|
||||
pInfo->vgroupList->numOfVgroups = pVgroupMsg->numOfVgroups;
|
||||
if (pInfo->vgroupList->numOfVgroups <= 0) {
|
||||
tscDebug("0x%" PRIx64 " empty vgroup info, no corresponding tables for stable", pSql->self);
|
||||
pVgroupInfo->numOfVgroups = pVgroupMsg->numOfVgroups;
|
||||
if (pVgroupInfo->numOfVgroups <= 0) {
|
||||
tscDebug("0x%" PRIx64 " empty vgroup info, no corresponding tables for stable", id);
|
||||
} else {
|
||||
for (int32_t j = 0; j < pInfo->vgroupList->numOfVgroups; ++j) {
|
||||
for (int32_t j = 0; j < pVgroupInfo->numOfVgroups; ++j) {
|
||||
// just init, no need to lock
|
||||
SVgroupInfo *pVgroup = &pInfo->vgroupList->vgroups[j];
|
||||
SVgroupInfo *pVgroup = &pVgroupInfo->vgroups[j];
|
||||
|
||||
SVgroupMsg *vmsg = &pVgroupMsg->vgroups[j];
|
||||
vmsg->vgId = htonl(vmsg->vgId);
|
||||
|
|
Loading…
Reference in New Issue