提交 6fffc717 编写于 作者: H Haojun Liao

fix(query): check validation of suid,

上级 c1e7b3be
...@@ -2001,7 +2001,7 @@ SOperatorInfo* createDataBlockInfoScanOperator(SReadHandle* readHandle, SBlockDi ...@@ -2001,7 +2001,7 @@ SOperatorInfo* createDataBlockInfoScanOperator(SReadHandle* readHandle, SBlockDi
} }
pInfo->readHandle = *readHandle; pInfo->readHandle = *readHandle;
pInfo->uid = pBlockScanNode->suid; pInfo->uid = (pBlockScanNode->suid != 0)? pBlockScanNode->suid:pBlockScanNode->uid;
int32_t numOfCols = 0; int32_t numOfCols = 0;
SExprInfo* pExprInfo = createExprInfo(pBlockScanNode->pScanPseudoCols, NULL, &numOfCols); SExprInfo* pExprInfo = createExprInfo(pBlockScanNode->pScanPseudoCols, NULL, &numOfCols);
......
...@@ -143,9 +143,11 @@ sql delete from t1 where ts<=1537146409500 ...@@ -143,9 +143,11 @@ sql delete from t1 where ts<=1537146409500
sql flush database $db sql flush database $db
print ======================================>TS-2639
sql show table distributed t1;
print =====================================>TD-22007 print =====================================>TD-22007
sql select count(*) from t1 interval(10a) sql select count(*) from t1 interval(10a)
sql drop table t1 sql drop table t1
sql create table st1 (ts timestamp, k int) tags(a int); sql create table st1 (ts timestamp, k int) tags(a int);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册