From 515f0865fffa48a2842ff3156bb4d2914531a769 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Thu, 30 Sep 2021 14:04:22 +0800 Subject: [PATCH] TD-6129 add tag?'key' in where logic --- tests/pytest/stable/json_tag.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/pytest/stable/json_tag.py b/tests/pytest/stable/json_tag.py index 977ba43e43..0b669b548c 100644 --- a/tests/pytest/stable/json_tag.py +++ b/tests/pytest/stable/json_tag.py @@ -108,7 +108,7 @@ class TDTestCase: tdSql.checkRows(3) tdSql.query("select *,tbname from db_json_tag_test.jsons1 where jtag->'location'='beijing'") - tdSql.checkRows(3) + tdSql.checkRows(2) tdSql.query("select *,tbname from db_json_tag_test.jsons1 where jtag->'num'=5 or jtag?'sex'") tdSql.checkRows(2) @@ -139,8 +139,8 @@ class TDTestCase: tdSql.query("select *,tbname from db_json_tag_test.jsons1 where jtag->'location' like 'bei%' and jtag->'num'=34") tdSql.checkRows(1) - tdSql.query("select *,tbname from db_json_tag_test.jsons1 where (jtag->'location' like 'bei%' or jtag->'num'=34)) and jtag->'class'=55") - tdSql.checkRows(1) + tdSql.query("select *,tbname from db_json_tag_test.jsons1 where (jtag->'location' like 'bei%' or jtag->'num'=34) and jtag->'class'=55") + tdSql.checkRows(0) def stop(self): -- GitLab