From 6c634ff7a25ae8c9a38f7ce178beb3b8b604152d Mon Sep 17 00:00:00 2001 From: jiacy-jcy Date: Fri, 27 May 2022 10:27:11 +0800 Subject: [PATCH] add case for percentile --- tests/system-test/2-query/percentile.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/system-test/2-query/percentile.py b/tests/system-test/2-query/percentile.py index 798aaea351..2122197ad2 100644 --- a/tests/system-test/2-query/percentile.py +++ b/tests/system-test/2-query/percentile.py @@ -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)) -- GitLab