self.check_result_auto_log(f"select c1, c2, c3 , c4, c5 ,c6 from {dbname}.sub1_bound ",f"select log(c1), log(c2) ,log(c3), log(c4), log(c5) ,log(c6) from {dbname}.sub1_bound")
self.check_result_auto_log2(f"select c1, c2, c3 , c4, c5 ,c6 from {dbname}.sub1_bound ",f"select log(c1,2), log(c2,2) ,log(c3,2), log(c4,2), log(c5,2) ,log(c6,2) from {dbname}.sub1_bound")
self.check_result_auto_log__10(f"select c1, c2, c3 , c4, c5 ,c6 from {dbname}.sub1_bound ",f"select log(c1,-10), log(c2,-10) ,log(c3,-10), log(c4,-10), log(c5,-10) ,log(c6,-10) from {dbname}.sub1_bound")
self.check_result_auto_log(None,f"select c1, c2, c3 , c4, c5 ,c6 from {dbname}.sub1_bound ",f"select log(c1), log(c2) ,log(c3), log(c4), log(c5) ,log(c6) from {dbname}.sub1_bound")
self.check_result_auto_log(2,f"select c1, c2, c3 , c4, c5 ,c6 from {dbname}.sub1_bound ",f"select log(c1,2), log(c2,2) ,log(c3,2), log(c4,2), log(c5,2) ,log(c6,2) from {dbname}.sub1_bound")
self.check_result_auto_log(10,f"select c1, c2, c3 , c4, c5 ,c6 from {dbname}.sub1_bound ",f"select log(c1,10), log(c2,10) ,log(c3,10), log(c4,10), log(c5,10) ,log(c6,10) from {dbname}.sub1_bound")
self.check_result_auto_log2(f"select c1, c2, c3 , c3, c2 ,c1 from {dbname}.sub1_bound ",f"select log(c1,2), log(c2,2) ,log(c3,2), log(c3,2), log(c2,2) ,log(c1,2) from {dbname}.sub1_bound")
self.check_result_auto_log(f"select c1, c2, c3 , c3, c2 ,c1 from {dbname}.sub1_bound ",f"select log(c1), log(c2) ,log(c3), log(c3), log(c2) ,log(c1) from {dbname}.sub1_bound")
self.check_result_auto_log(2,f"select c1, c2, c3 , c3, c2 ,c1 from {dbname}.sub1_bound ",f"select log(c1,2), log(c2,2) ,log(c3,2), log(c3,2), log(c2,2) ,log(c1,2) from {dbname}.sub1_bound")
self.check_result_auto_log(None,f"select c1, c2, c3 , c3, c2 ,c1 from {dbname}.sub1_bound ",f"select log(c1), log(c2) ,log(c3), log(c3), log(c2) ,log(c1) from {dbname}.sub1_bound")
self.check_result_auto_log2(f"select abs(abs(abs(abs(abs(abs(abs(abs(abs(c1))))))))) nest_col_func from {dbname}.sub1_bound",f"select log(abs(c1) ,2) from {dbname}.sub1_bound")
self.check_result_auto_log(2,f"select abs(abs(abs(abs(abs(abs(abs(abs(abs(c1))))))))) nest_col_func from {dbname}.sub1_bound",f"select log(abs(c1) ,2) from {dbname}.sub1_bound")
self.check_result_auto_log2(f"select c5 from {dbname}.stb1 order by ts ",f"select log(c5,2) from {dbname}.stb1 order by ts")
self.check_result_auto_log2(f"select c5 from {dbname}.stb1 order by tbname ",f"select log(c5,2) from {dbname}.stb1 order by tbname")
self.check_result_auto_log2(f"select c5 from {dbname}.stb1 where c1 > 0 order by tbname ",f"select log(c5,2) from {dbname}.stb1 where c1 > 0 order by tbname")
self.check_result_auto_log2(f"select c5 from {dbname}.stb1 where c1 > 0 order by tbname ",f"select log(c5,2) from {dbname}.stb1 where c1 > 0 order by tbname")
self.check_result_auto_log(2,f"select c5 from {dbname}.stb1 order by ts ",f"select log(c5,2) from {dbname}.stb1 order by ts")
self.check_result_auto_log(2,f"select c5 from {dbname}.stb1 order by tbname ",f"select log(c5,2) from {dbname}.stb1 order by tbname")
self.check_result_auto_log(2,f"select c5 from {dbname}.stb1 where c1 > 0 order by tbname ",f"select log(c5,2) from {dbname}.stb1 where c1 > 0 order by tbname")
self.check_result_auto_log(2,f"select c5 from {dbname}.stb1 where c1 > 0 order by tbname ",f"select log(c5,2) from {dbname}.stb1 where c1 > 0 order by tbname")
self.check_result_auto_log2(f"select t1,c5 from {dbname}.stb1 order by ts ",f"select log(t1,2), log(c5,2) from {dbname}.stb1 order by ts")
self.check_result_auto_log2(f"select t1,c5 from {dbname}.stb1 order by tbname ",f"select log(t1,2) ,log(c5,2) from {dbname}.stb1 order by tbname")
self.check_result_auto_log2(f"select t1,c5 from {dbname}.stb1 where c1 > 0 order by tbname ",f"select log(t1,2) ,log(c5,2) from {dbname}.stb1 where c1 > 0 order by tbname")
self.check_result_auto_log2(f"select t1,c5 from {dbname}.stb1 where c1 > 0 order by tbname ",f"select log(t1,2) , log(c5,2) from {dbname}.stb1 where c1 > 0 order by tbname")
self.check_result_auto_log(2,f"select t1,c5 from {dbname}.stb1 order by ts ",f"select log(t1,2), log(c5,2) from {dbname}.stb1 order by ts")
self.check_result_auto_log(2,f"select t1,c5 from {dbname}.stb1 order by tbname ",f"select log(t1,2) ,log(c5,2) from {dbname}.stb1 order by tbname")
self.check_result_auto_log(2,f"select t1,c5 from {dbname}.stb1 where c1 > 0 order by tbname ",f"select log(t1,2) ,log(c5,2) from {dbname}.stb1 where c1 > 0 order by tbname")
self.check_result_auto_log(2,f"select t1,c5 from {dbname}.stb1 where c1 > 0 order by tbname ",f"select log(t1,2) , log(c5,2) from {dbname}.stb1 where c1 > 0 order by tbname")
join_condition+=f" {join}{tb_list[i+1]}{tb_list[i+1].split('.')[-1]} on {table_reference.split('.')[-1]}.{filter}={tb_list[i+1].split('.')[-1]}.{filter}"
returnjoin_condition
...
...
@@ -76,7 +76,6 @@ class TDTestCase:
elifquery_conditon.startswith("min"):
query_conditon=query_conditon[4:-1]
ifquery_conditon:
returnf" where {query_conditon} is not null"
ifcolinNUM_COL:
...
...
@@ -108,10 +107,10 @@ class TDTestCase:
returnf"select {select_clause} from {from_clause}{where_condition}{group_condition}"