add case for percentile

This commit is contained in:
jiacy-jcy 2022-05-27 10:27:11 +08:00
parent 390cba6d4b
commit 6c634ff7a2
1 changed files with 8 additions and 8 deletions

View File

@ -40,14 +40,14 @@ class TDTestCase:
floatData.append(i + 0.1)
# percentile verifacation
tdSql.error("select percentile(ts 20) from test")
tdSql.error("select apercentile(ts 20) from test")
tdSql.error("select percentile(col7 20) from test")
tdSql.error("select apercentile(col7 20) from test")
tdSql.error("select percentile(col8 20) from test")
tdSql.error("select apercentile(col8 20) from test")
tdSql.error("select percentile(col9 20) from test")
tdSql.error("select apercentile(col9 20) from test")
tdSql.error("select percentile(ts ,20) from test")
tdSql.error("select apercentile(ts ,20) from test")
tdSql.error("select percentile(col7 ,20) from test")
tdSql.error("select apercentile(col7 ,20) from test")
tdSql.error("select percentile(col8 ,20) from test")
tdSql.error("select apercentile(col8 ,20) from test")
tdSql.error("select percentile(col9 ,20) from test")
tdSql.error("select apercentile(col9 ,20) from test")
tdSql.query("select percentile(col1, 0) from test")
tdSql.checkData(0, 0, np.percentile(intData, 0))