fix some test cases
This commit is contained in:
parent
0692ab4c5e
commit
61619c940f
|
@ -313,9 +313,11 @@ class TDTestCase:
|
||||||
tdSql.checkRows(1)
|
tdSql.checkRows(1)
|
||||||
tdSql.query("select udf1(num1) , bottom(num1,1) from tb;")
|
tdSql.query("select udf1(num1) , bottom(num1,1) from tb;")
|
||||||
tdSql.checkRows(1)
|
tdSql.checkRows(1)
|
||||||
tdSql.error("select udf1(num1) , last_row(num1) from tb;")
|
tdSql.query("select udf1(num1) , last_row(num1) from tb;")
|
||||||
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
tdSql.error("select round(num1) , last_row(num1) from tb;")
|
tdSql.query("select round(num1) , last_row(num1) from tb;")
|
||||||
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
|
|
||||||
# stable
|
# stable
|
||||||
|
@ -340,8 +342,10 @@ class TDTestCase:
|
||||||
tdSql.query("select ceil(c1) , bottom(c1,1) from stb1;")
|
tdSql.query("select ceil(c1) , bottom(c1,1) from stb1;")
|
||||||
tdSql.checkRows(1)
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
tdSql.error("select udf1(c1) , last_row(c1) from stb1;")
|
tdSql.query("select udf1(c1) , last_row(c1) from stb1;")
|
||||||
tdSql.error("select ceil(c1) , last_row(c1) from stb1;")
|
tdSql.checkRows(1)
|
||||||
|
tdSql.query("select ceil(c1) , last_row(c1) from stb1;")
|
||||||
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
# regular table with compute functions
|
# regular table with compute functions
|
||||||
|
|
||||||
|
|
|
@ -315,9 +315,11 @@ class TDTestCase:
|
||||||
tdSql.checkRows(1)
|
tdSql.checkRows(1)
|
||||||
tdSql.query("select udf1(num1) , bottom(num1,1) from tb;")
|
tdSql.query("select udf1(num1) , bottom(num1,1) from tb;")
|
||||||
tdSql.checkRows(1)
|
tdSql.checkRows(1)
|
||||||
tdSql.error("select udf1(num1) , last_row(num1) from tb;")
|
tdSql.query("select udf1(num1) , last_row(num1) from tb;")
|
||||||
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
tdSql.error("select round(num1) , last_row(num1) from tb;")
|
tdSql.query("select round(num1) , last_row(num1) from tb;")
|
||||||
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
|
|
||||||
# stable
|
# stable
|
||||||
|
@ -342,8 +344,10 @@ class TDTestCase:
|
||||||
tdSql.query("select ceil(c1) , bottom(c1,1) from stb1;")
|
tdSql.query("select ceil(c1) , bottom(c1,1) from stb1;")
|
||||||
tdSql.checkRows(1)
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
tdSql.error("select udf1(c1) , last_row(c1) from stb1;")
|
tdSql.query("select udf1(c1) , last_row(c1) from stb1;")
|
||||||
tdSql.error("select ceil(c1) , last_row(c1) from stb1;")
|
tdSql.checkRows(1)
|
||||||
|
tdSql.query("select ceil(c1) , last_row(c1) from stb1;")
|
||||||
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
# regular table with compute functions
|
# regular table with compute functions
|
||||||
|
|
||||||
|
|
|
@ -312,9 +312,11 @@ class TDTestCase:
|
||||||
tdSql.checkRows(1)
|
tdSql.checkRows(1)
|
||||||
tdSql.query("select udf1(num1) , bottom(num1,1) from tb;")
|
tdSql.query("select udf1(num1) , bottom(num1,1) from tb;")
|
||||||
tdSql.checkRows(1)
|
tdSql.checkRows(1)
|
||||||
tdSql.error("select udf1(num1) , last_row(num1) from tb;")
|
tdSql.query("select udf1(num1) , last_row(num1) from tb;")
|
||||||
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
tdSql.error("select round(num1) , last_row(num1) from tb;")
|
tdSql.query("select round(num1) , last_row(num1) from tb;")
|
||||||
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
|
|
||||||
# stable
|
# stable
|
||||||
|
@ -339,8 +341,10 @@ class TDTestCase:
|
||||||
tdSql.query("select ceil(c1) , bottom(c1,1) from stb1;")
|
tdSql.query("select ceil(c1) , bottom(c1,1) from stb1;")
|
||||||
tdSql.checkRows(1)
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
tdSql.error("select udf1(c1) , last_row(c1) from stb1;")
|
tdSql.query("select udf1(c1) , last_row(c1) from stb1;")
|
||||||
tdSql.error("select ceil(c1) , last_row(c1) from stb1;")
|
tdSql.checkRows(1)
|
||||||
|
tdSql.query("select ceil(c1) , last_row(c1) from stb1;")
|
||||||
|
tdSql.checkRows(1)
|
||||||
|
|
||||||
# regular table with compute functions
|
# regular table with compute functions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue