提交 cc7ff424 编写于 作者: L liuyq-617

[TS-706]<test>count(tbname) disabled test coverage

上级 44ece9a1
...@@ -75,6 +75,25 @@ class TDTestCase: ...@@ -75,6 +75,25 @@ class TDTestCase:
tdSql.query("select count(col10) from test") tdSql.query("select count(col10) from test")
tdSql.checkRows(0) tdSql.checkRows(0)
#TS-653 forbidden count(tbname) to mix up with agg, proj etc.
tdSql.error("select count(*),count(tbname) from test")
tdSql.error("select col11,count(tbname) from test;")
tdSql.error("select count(tbname),count(*) from test")
tdSql.error("select count(tbname),col11 from test;")
func_list=['avg','count','twa','sum','stddev','leastsquares','min',
'max','first','last','top','bottom','percentile','apercentile',
'last_row','diff','spread'
]
for j in func_list:
if j == 'leastsquares':
pick_func=j+'(col1,1,1)'
elif j == 'top' or j == 'bottom' or j == 'percentile' or j == 'apercentile':
pick_func=j+'(col1,1)'
else:
pick_func=j+'(col)'
tdSql.error("select {0},count(tbname) from test".format(pick_func))
tdSql.error("select count(tbname),{0} from test".format(pick_func))
tdSql.execute("insert into test1 values(now, 1, 2, 3, 4, 1.1, 2.2, false, 'test', 'test' , 1, 1, 1, 1, 1)") tdSql.execute("insert into test1 values(now, 1, 2, 3, 4, 1.1, 2.2, false, 'test', 'test' , 1, 1, 1, 1, 1)")
tdSql.query("select count(col10) from test") tdSql.query("select count(col10) from test")
tdSql.checkData(0, 0, 1) tdSql.checkData(0, 0, 1)
......
...@@ -155,6 +155,7 @@ class TDTestCase: ...@@ -155,6 +155,7 @@ class TDTestCase:
sys.exit() sys.exit()
tdSql.query("select abs_max(val) from st") tdSql.query("select abs_max(val) from st")
tdSql.error("select abs_max(val),count(tbname) from st")
tdSql.query("select abs_max(val) from tb1") tdSql.query("select abs_max(val) from tb1")
tdSql.checkRows(0) tdSql.checkRows(0)
tdSql.query("select sum_double(val) from st") tdSql.query("select sum_double(val) from st")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册