fix(coverage):enh function case about cast , log ,pow for coverage

This commit is contained in:
wenzhouwww@live.cn 2022-10-26 19:40:38 +08:00
parent 002db5b033
commit ce19cfb9ea
1 changed files with 1 additions and 19 deletions

View File

@ -694,25 +694,7 @@ class TDTestCase:
tdSql.query(f"select cast('123' as tinyint unsigned) as b from {self.dbname}.stb1 partition by tbname")
# uion with cast and common cols
'''
desc stb1
field | type | length | note |
=================================================================================
ts | TIMESTAMP | 8 | |
c1 | INT | 4 | |
c2 | BIGINT | 8 | |
c3 | SMALLINT | 2 | |
c4 | TINYINT | 1 | |
c5 | FLOAT | 4 | |
c6 | DOUBLE | 8 | |
c7 | BOOL | 1 | |
c8 | VARCHAR | 16 | |
c9 | NCHAR | 32 | |
c10 | TIMESTAMP | 8 | |
t1 | INT | 4 | TAG |
'''
tdSql.query(f"select cast(c2 as int) as b from {self.dbname}.stb1 union all select c1 from {self.dbname}.stb1 ")
tdSql.query(f"select cast(c3 as bool) as b from {self.dbname}.stb1 union all select c7 from {self.dbname}.ct1 ")
tdSql.query(f"select cast(c4 as tinyint) as b from {self.dbname}.stb1 union all select c4 from {self.dbname}.stb1")