fix(query): check validation of suid,

This commit is contained in:
Haojun Liao 2023-02-14 10:41:17 +08:00
parent c1e7b3be66
commit 6fffc71785
2 changed files with 4 additions and 2 deletions

View File

@ -2001,7 +2001,7 @@ SOperatorInfo* createDataBlockInfoScanOperator(SReadHandle* readHandle, SBlockDi
}
pInfo->readHandle = *readHandle;
pInfo->uid = pBlockScanNode->suid;
pInfo->uid = (pBlockScanNode->suid != 0)? pBlockScanNode->suid:pBlockScanNode->uid;
int32_t numOfCols = 0;
SExprInfo* pExprInfo = createExprInfo(pBlockScanNode->pScanPseudoCols, NULL, &numOfCols);

View File

@ -143,9 +143,11 @@ sql delete from t1 where ts<=1537146409500
sql flush database $db
print ======================================>TS-2639
sql show table distributed t1;
print =====================================>TD-22007
sql select count(*) from t1 interval(10a)
sql drop table t1
sql create table st1 (ts timestamp, k int) tags(a int);