提交 883d128e 编写于 作者: A Alex Duan

[TS-207]<fix>(query): fixed case error

上级 802b6d11
......@@ -17,7 +17,6 @@ from util.log import tdLog
from util.cases import tdCases
from util.sql import tdSql
import json
import site
class TDTestCase:
......@@ -35,8 +34,6 @@ class TDTestCase:
def run(self):
tdSql.prepare()
print("print sitepackage path: ")
print(site.getsitepackages())
print("============== STEP 1 ===== prepare data & validate json string")
tdSql.error("create table if not exists jsons1(ts timestamp, dataInt int, dataBool bool, dataStr nchar(50), dataStrBin binary(150)) tags(jtag json, tagint int)")
tdSql.error("create table if not exists jsons1(ts timestamp, data json) tags(tagint int)")
......
......@@ -144,7 +144,7 @@ class TDTestCase:
tdSql.checkData(1, 1, "d002")
#group by tag
tdSql.query('select mode(ddouble) from smode group by location')
tdSql.query('select mode(ddouble) from smode group by location order by location desc')
tdSql.checkRows(2)
tdSql.checkData(0, 0, 4.982392323)
tdSql.checkData(0, 1, "Beijing.haidian")
......
......@@ -135,9 +135,9 @@ class TDTestCase:
tdSql.execute("insert into std3 values(now + 5s, 4);")
tdSql.execute("insert into std3 values(now + 6s, 8);")
tdSql.query("select stddev(col1) from stdtable group by loc;")
tdSql.checkData(0, 0, 2.0)
tdSql.checkData(2, 0, 2.0)
tdSql.checkData(1, 0, 0.5)
tdSql.checkData(2, 0, 0.5)
tdSql.checkData(0, 0, 0.5)
tdSql.execute("create table stdtableint(ts timestamp, col1 int) tags(num int)")
tdSql.execute("create table stdint1 using stdtableint tags(1)")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册