From ef0c56d186709923d23f8c978206efeb698f0826 Mon Sep 17 00:00:00 2001 From: tomchon Date: Fri, 12 Nov 2021 19:09:23 +0800 Subject: [PATCH] [TD-6677]: add calculation function tests --- tests/pytest/tag_lite/json_tag_extra.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/pytest/tag_lite/json_tag_extra.py b/tests/pytest/tag_lite/json_tag_extra.py index 808556d298..98a5883305 100644 --- a/tests/pytest/tag_lite/json_tag_extra.py +++ b/tests/pytest/tag_lite/json_tag_extra.py @@ -463,8 +463,12 @@ class TDTestCase: tdSql.execute("insert into jsons7_2 (ts,datafloat) values (now,-0.9) ") tdSql.execute("insert into jsons7_2 (ts,datafloat) values (now,-1.9) ") # tdSql.execute("CREATE TABLE if not exists jsons7_3 using jsons7 tags('{\"nv\":null,\"tea\":true,\"\":false,\"tag\":4569\"tea\":false}') ") - tdSql.execute("select ts,ceil(dataint),ceil(datafloat),ceil(datadouble) from jsons7 where jtag?'tea';") - tdSql.execute("select ceil(dataint),ceil(datafloat),ceil(datadouble) from jsons7 where jtag?'tea';") + tdSql.query("select ts,ceil(dataint),ceil(datafloat),ceil(datadouble) from jsons7 where jtag?'tea';") + tdSql.query("select ceil(dataint),ceil(datafloat),ceil(datadouble) from jsons7 where jtag?'tea';") + tdSql.query("select ts,floor(dataint),floor(datafloat),floor(datadouble) from jsons7 where jtag?'tea';") + tdSql.query("select floor(dataint),floor(datafloat),floor(datadouble) from jsons7 where jtag?'tea';") + tdSql.query("select ts,round(dataint),round(datafloat),round(datadouble) from jsons7 where jtag?'tea';") + tdSql.query("select round(dataint),round(datafloat),round(datadouble) from jsons7 where jtag?'tea';") # test join -- GitLab