[td-255] update sim test.
This commit is contained in:
parent
d09d9a2e56
commit
a69cede0ab
|
@ -3890,7 +3890,7 @@ static int32_t handleExprInQueryCond(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, tSql
|
|||
}
|
||||
|
||||
SSchema* pSchema = tscGetTableColumnSchema(pTableMeta, index.columnIndex);
|
||||
if (pSchema->colId == PRIMARYKEY_TIMESTAMP_COL_INDEX) { // query on time range
|
||||
if (pSchema->type == TSDB_DATA_TYPE_TIMESTAMP && index.columnIndex == PRIMARYKEY_TIMESTAMP_COL_INDEX) { // query on time range
|
||||
if (!validateJoinExprNode(pCmd, pQueryInfo, *pExpr, &index)) {
|
||||
return TSDB_CODE_TSC_INVALID_OPERATION;
|
||||
}
|
||||
|
|
|
@ -124,12 +124,27 @@ if $rows != 2 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql select * from (select count(*) a from nest_mt0 group by tbname) t where t.a<0
|
||||
sql select * from (select count(*) a, tbname f1 from nest_mt0 group by tbname) t where t.a<0 and f1 = 'nest_tb0';
|
||||
if $rows != 0 then
|
||||
return -1
|
||||
endi
|
||||
|
||||
sql select * from (select count(*) a, tbname f1 from nest_mt0 group by tbname) t where t.a>0 and f1 = 'nest_tb0';
|
||||
if $rows != 1 then
|
||||
return -1
|
||||
endi
|
||||
|
||||
if $data00 != 10000 then
|
||||
return -1
|
||||
endi
|
||||
|
||||
if $data01 != @nest_tb0@ then
|
||||
return -1
|
||||
endi
|
||||
|
||||
if $data02 != @nest_tb0@ then
|
||||
return -1
|
||||
endi
|
||||
|
||||
print ===================> nest query interval
|
||||
|
||||
|
|
Loading…
Reference in New Issue