Merge pull request #5479 from taosdata/test/testcase
[TD-3318]<test>add case for stddev
This commit is contained in:
commit
0c46529296
|
@ -118,7 +118,11 @@ class TDTestCase:
|
||||||
if i == 1 or i == 5 or i == 6 or i == 7 or i == 9 or i == 8 :continue
|
if i == 1 or i == 5 or i == 6 or i == 7 or i == 9 or i == 8 :continue
|
||||||
tdSql.query('select stddev(c%d),stddev(c%d) from s group by c%d' %( i+1 , i+1 , i+1 ) )
|
tdSql.query('select stddev(c%d),stddev(c%d) from s group by c%d' %( i+1 , i+1 , i+1 ) )
|
||||||
|
|
||||||
|
#add for TD-3318
|
||||||
|
tdSql.execute('create table t1(ts timestamp, k int, b binary(12));')
|
||||||
|
tdSql.execute("insert into t1 values(now, 1, 'abc');")
|
||||||
|
tdLog.info("select stddev(k) from t1 where b <> 'abc' interval(1s);")
|
||||||
|
tdSql.query("select stddev(k) from t1 where b <> 'abc' interval(1s);")
|
||||||
|
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
|
|
|
@ -29,7 +29,7 @@ function dohavecore(){
|
||||||
proc=`echo $corefile|cut -d "_" -f3`
|
proc=`echo $corefile|cut -d "_" -f3`
|
||||||
if [ -n "$corefile" ];then
|
if [ -n "$corefile" ];then
|
||||||
echo 'taosd or taos has generated core'
|
echo 'taosd or taos has generated core'
|
||||||
tar -zcvPf $corepath'taos_'`date "+%Y_%m_%d_%H_%M_%S"`.tar.gz /usr/local/taos/
|
tar -zcPf $corepath'taos_'`date "+%Y_%m_%d_%H_%M_%S"`.tar.gz /usr/local/taos/
|
||||||
if [[ $1 == 1 ]];then
|
if [[ $1 == 1 ]];then
|
||||||
echo '\n'|gdb /usr/local/taos/bin/$proc $core_file -ex "bt 10" -ex quit
|
echo '\n'|gdb /usr/local/taos/bin/$proc $core_file -ex "bt 10" -ex quit
|
||||||
exit 8
|
exit 8
|
||||||
|
|
Loading…
Reference in New Issue