tdSql.execute('insert into tb3 values (now()+{}s, {}, {})'.format(i,PI*(5+i)/2,PI*(5+i)/2))
self.check_result_auto_acos("select num1,num2 from tb3;","select acos(num1),acos(num2) from tb3")
defsupport_super_table_test(self):
tdSql.execute(" use db ")
self.check_result_auto_acos(" select c5 from stb1 order by ts ","select acos(c5) from stb1 order by ts")
self.check_result_auto_acos(" select c5 from stb1 order by tbname ","select acos(c5) from stb1 order by tbname")
self.check_result_auto_acos(" select c5 from stb1 where c1 > 0 order by tbname ","select acos(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_acos(" select c5 from stb1 where c1 > 0 order by tbname ","select acos(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_acos(" select t1,c5 from stb1 order by ts ","select acos(t1), acos(c5) from stb1 order by ts")
self.check_result_auto_acos(" select t1,c5 from stb1 order by tbname ","select acos(t1) ,acos(c5) from stb1 order by tbname")
self.check_result_auto_acos(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select acos(t1) ,acos(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_acos(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select acos(t1) , acos(c5) from stb1 where c1 > 0 order by tbname")
tdSql.execute('insert into tb3 values (now()+{}s, {}, {})'.format(i,PI*(5+i)/2,PI*(5+i)/2))
self.check_result_auto_asin("select num1,num2 from tb3;","select asin(num1),asin(num2) from tb3")
defsupport_super_table_test(self):
tdSql.execute(" use db ")
self.check_result_auto_asin(" select c5 from stb1 order by ts ","select asin(c5) from stb1 order by ts")
self.check_result_auto_asin(" select c5 from stb1 order by tbname ","select asin(c5) from stb1 order by tbname")
self.check_result_auto_asin(" select c5 from stb1 where c1 > 0 order by tbname ","select asin(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_asin(" select c5 from stb1 where c1 > 0 order by tbname ","select asin(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_asin(" select t1,c5 from stb1 order by ts ","select asin(t1), asin(c5) from stb1 order by ts")
self.check_result_auto_asin(" select t1,c5 from stb1 order by tbname ","select asin(t1) ,asin(c5) from stb1 order by tbname")
self.check_result_auto_asin(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select asin(t1) ,asin(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_asin(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select asin(t1) , asin(c5) from stb1 where c1 > 0 order by tbname")
tdSql.execute('insert into tb3 values (now()+{}s, {}, {})'.format(i,PI*(5+i)/2,PI*(5+i)/2))
self.check_result_auto_atan("select num1,num2 from tb3;","select atan(num1),atan(num2) from tb3")
defsupport_super_table_test(self):
tdSql.execute(" use db ")
self.check_result_auto_atan(" select c5 from stb1 order by ts ","select atan(c5) from stb1 order by ts")
self.check_result_auto_atan(" select c5 from stb1 order by tbname ","select atan(c5) from stb1 order by tbname")
self.check_result_auto_atan(" select c5 from stb1 where c1 > 0 order by tbname ","select atan(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_atan(" select c5 from stb1 where c1 > 0 order by tbname ","select atan(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_atan(" select t1,c5 from stb1 order by ts ","select atan(t1), atan(c5) from stb1 order by ts")
self.check_result_auto_atan(" select t1,c5 from stb1 order by tbname ","select atan(t1) ,atan(c5) from stb1 order by tbname")
self.check_result_auto_atan(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select atan(t1) ,atan(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_atan(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select atan(t1) , atan(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_log2(" select c5 from stb1 order by ts ","select log(c5,2) from stb1 order by ts")
self.check_result_auto_log2(" select c5 from stb1 order by tbname ","select log(c5,2) from stb1 order by tbname")
self.check_result_auto_log2(" select c5 from stb1 where c1 > 0 order by tbname ","select log(c5,2) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_log2(" select c5 from stb1 where c1 > 0 order by tbname ","select log(c5,2) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_log2(" select t1,c5 from stb1 order by ts ","select log(t1,2), log(c5,2) from stb1 order by ts")
self.check_result_auto_log2(" select t1,c5 from stb1 order by tbname ","select log(t1,2) ,log(c5,2) from stb1 order by tbname")
self.check_result_auto_log2(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select log(t1,2) ,log(c5,2) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_log2(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select log(t1,2) , log(c5,2) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_pow2(" select c5 from stb1 order by ts ","select pow(c5,2) from stb1 order by ts")
self.check_result_auto_pow2(" select c5 from stb1 order by tbname ","select pow(c5,2) from stb1 order by tbname")
self.check_result_auto_pow2(" select c5 from stb1 where c1 > 0 order by tbname ","select pow(c5,2) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_pow2(" select c5 from stb1 where c1 > 0 order by tbname ","select pow(c5,2) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_pow2(" select t1,c5 from stb1 order by ts ","select pow(t1,2), pow(c5,2) from stb1 order by ts")
self.check_result_auto_pow2(" select t1,c5 from stb1 order by tbname ","select pow(t1,2) ,pow(c5,2) from stb1 order by tbname")
self.check_result_auto_pow2(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select pow(t1,2) ,pow(c5,2) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_pow2(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select pow(t1,2) , pow(c5,2) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_sqrt(" select c5 from stb1 order by ts ","select sqrt(c5) from stb1 order by ts")
self.check_result_auto_sqrt(" select c5 from stb1 order by tbname ","select sqrt(c5) from stb1 order by tbname")
self.check_result_auto_sqrt(" select c5 from stb1 where c1 > 0 order by tbname ","select sqrt(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_sqrt(" select c5 from stb1 where c1 > 0 order by tbname ","select sqrt(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_sqrt(" select t1,c5 from stb1 order by ts ","select sqrt(t1), sqrt(c5) from stb1 order by ts")
self.check_result_auto_sqrt(" select t1,c5 from stb1 order by tbname ","select sqrt(t1) ,sqrt(c5) from stb1 order by tbname")
self.check_result_auto_sqrt(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select sqrt(t1) ,sqrt(c5) from stb1 where c1 > 0 order by tbname")
self.check_result_auto_sqrt(" select t1,c5 from stb1 where c1 > 0 order by tbname ","select sqrt(t1) , sqrt(c5) from stb1 where c1 > 0 order by tbname")