未验证 提交 2d000487 编写于 作者: J jiajingbin 提交者: GitHub

Update queryDiffColsTagsAndOr.py

上级 71faf1f8
...@@ -815,7 +815,6 @@ class TDTestCase: ...@@ -815,7 +815,6 @@ class TDTestCase:
query_sql = f'select count(*), avg(c6), sum(c3) from (select * from {tb_name} where c1 >1 or c2 = 2 and c7 like "binar_" and c4 in (3, 5)) where c1 != 2 or c3 = 1 or t1=2 or t1=3 or c8 like "ncha_" and c9 in (true) interval(8d)' query_sql = f'select count(*), avg(c6), sum(c3) from (select * from {tb_name} where c1 >1 or c2 = 2 and c7 like "binar_" and c4 in (3, 5)) where c1 != 2 or c3 = 1 or t1=2 or t1=3 or c8 like "ncha_" and c9 in (true) interval(8d)'
res = tdSql.query(query_sql, True) res = tdSql.query(query_sql, True)
tdSql.checkRows(3) tdSql.checkRows(3)
print(res)
tdSql.checkEqual(int(res[0][1]), 15) tdSql.checkEqual(int(res[0][1]), 15)
tdSql.checkEqual(int(res[0][2]), 1) tdSql.checkEqual(int(res[0][2]), 1)
tdSql.checkEqual(int(res[0][3]), 50) tdSql.checkEqual(int(res[0][3]), 50)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册