tdSql.query("select c1, pow(c1, 100000000) from ct1")# bigint to double data overflow
tdSql.checkData(0,1,None)
tdSql.checkData(1,1,None)
tdSql.checkData(4,1,0.000000000)
tdSql.query("select c1, pow(c1, 10000000000000) from ct1")# bigint to double data overflow
tdSql.checkData(0,1,None)
tdSql.checkData(1,1,None)
tdSql.checkData(4,1,0.000000000)
tdSql.query("select c1, pow(c1, 10000000000000000000000000) from ct1")# bigint to double data overflow
tdSql.query("select c1, pow(c1, 10000000000000000000000000.0) from ct1")# 10000000000000000000000000.0 is a double value
tdSql.checkData(0,1,None)
tdSql.checkData(1,1,None)
tdSql.checkData(4,1,0.000000000)
tdSql.query("select c1, pow(c1, 10000000000000000000000000000000000) from ct1")# bigint to double data overflow
tdSql.query("select c1, pow(c1, 10000000000000000000000000000000000.0) from ct1")# 10000000000000000000000000.0 is a double value
tdSql.checkData(0,1,None)
tdSql.checkData(1,1,None)
tdSql.checkData(4,1,0.000000000)
tdSql.query("select c1, pow(c1, 10000000000000000000000000000000000000000) from ct1")# bigint to double data overflow
tdSql.query("select c1, pow(c1, 10000000000000000000000000000000000000000.0) from ct1")# 10000000000000000000000000.0 is a double value
tdSql.checkData(0,1,None)
tdSql.checkData(1,1,None)
tdSql.checkData(4,1,0.000000000)
tdSql.query("select c1, pow(c1, 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) from ct1")# bigint to double data overflow
self.check_result_auto_pow2("select c1, c2, c3 , c4, c5 from sub1_bound ","select pow(c1,2), pow(c2,2) ,pow(c3,2), pow(c4,2), pow(c5,2) from sub1_bound")
self.check_result_auto_pow__10("select c1, c2, c3 , c4, c5 from sub1_bound ","select pow(c1,-10), pow(c2,-10) ,pow(c3,-10), pow(c4,-10), pow(c5,-10) from sub1_bound")
self.check_result_auto_pow2("select c1, c2, c3 , c3, c2 ,c1 from sub1_bound ","select pow(c1,2), pow(c2,2) ,pow(c3,2), pow(c3,2), pow(c2,2) ,pow(c1,2) from sub1_bound")
self.check_result_auto_pow2("select abs(abs(abs(abs(abs(abs(abs(abs(abs(c1))))))))) nest_col_func from sub1_bound","select pow(abs(c1) ,2) from sub1_bound")