feat : add checkConsistency fun

This commit is contained in:
Alex Duan 2024-01-14 22:14:39 +08:00
parent 14fb86c0a9
commit 07e6801237
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -170,13 +170,13 @@ class TBase:
# order by asc limit 1 with first
sql = f"select last({col}) from {self.stb}"
expect = tdSql.getFirstValue(sql)
sql = f"select {col} from {self.stb} order by {col} desc limit 1"
sql = f"select {col} from {self.stb} order by _c0 desc limit 1"
tdSql.checkFirstValue(sql, expect)
# order by desc limit 1 with last
sql = f"select first({col}) from {self.stb}"
expect = tdSql.getFirstValue(sql)
sql = f"select {col} from {self.stb} order by {col} asc limit 1"
sql = f"select {col} from {self.stb} order by _c0 asc limit 1"
tdSql.checkFirstValue(sql, expect)
#