fix: add top fun

This commit is contained in:
Alex Duan 2024-01-15 21:04:54 +08:00
parent 06ec6fcdc6
commit 086aa9c878
2 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,7 @@
"password": "taosdata",
"connection_pool_size": 8,
"num_of_records_per_req": 4000,
"prepared_rand": 1000,
"prepared_rand": 10000,
"thread_count": 3,
"create_table_thread_count": 1,
"confirm_parameter_prompt": "no",

View File

@ -69,6 +69,10 @@ class TDTestCase(TBase):
sql2 = "select UNIQUE(uti) from d0 order by uti asc;"
self.checkSameResult(sql1, sql2)
# top
sql1 = "select top(bi,10) from stb;"
sql2 = "select bi from stb where bi is not null order by bi desc limit 10;"
self.checkSameResult(sql1, sql2)
# run
def run(self):