This commit is contained in:
factosea 2024-01-11 21:21:00 +08:00
parent 3ed63df082
commit 25f9956ccb
3 changed files with 2 additions and 3 deletions

View File

@ -3523,7 +3523,7 @@ static int32_t translateOrderBy(STranslateContext* pCxt, SSelectStmt* pSelect) {
code = checkExprListForGroupBy(pCxt, pSelect, pSelect->pOrderByList);
}
if (other && TSDB_CODE_SUCCESS == code) {
code = checkOrderByAggForGroupBy(pCxt, pSelect, pSelect->pOrderByList);
// code = checkOrderByAggForGroupBy(pCxt, pSelect, pSelect->pOrderByList);
}
return code;
}

View File

@ -245,7 +245,6 @@ endi
sql alter database db cachemodel 'none';
sql reset query cache;
sql select tbname,last_row(c0, ts) from db.stb;
if $rows != 1 then
return -1

View File

@ -507,7 +507,7 @@ class TDTestCase:
tdSql.query(f"select last(*), last_row(*),last(c1), last_row(c1) from {dbname}.stb1 ")
tdSql.query(f"select last(*), last_row(*),last(c1), last_row(c1) from {dbname}.ct1 ")
tdSql.query(f"select last(*), last_row(*),last(c1+1)*max(c1), last_row(c1+2)/2 from {dbname}.t1 ")
tdSql.query(f"select last_row(*) ,abs(c1/2)+100 from {dbname}.stb1 where tbname =\"ct1\" ")
# tdSql.query(f"select last_row(*) ,abs(c1/2)+100 from {dbname}.stb1 where tbname =\"ct1\" ")
tdSql.query(f"select c1, last_row(c5) from {dbname}.ct1 ")
tdSql.error(f"select c1, last_row(c5) ,last(c1) from {dbname}.stb1 ")