From 9421fe55b8e78aca28eb0c29433cfaad63f14b44 Mon Sep 17 00:00:00 2001 From: tomchon Date: Fri, 5 Nov 2021 17:43:38 +0800 Subject: [PATCH] temp --- tests/pytest/tag_lite/json_tag_extra.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/pytest/tag_lite/json_tag_extra.py b/tests/pytest/tag_lite/json_tag_extra.py index 40ee69d46b..fbd83767b4 100644 --- a/tests/pytest/tag_lite/json_tag_extra.py +++ b/tests/pytest/tag_lite/json_tag_extra.py @@ -340,18 +340,23 @@ class TDTestCase: tdSql.execute("INSERT INTO jsons1_14 using jsons1 tags('{\"tbname\":\"tt\",\"location\":\"tianjing\",\"dataStr\":\"是是是\"}') values(now,5, \"你就会\")") - # tdSql.execute("select ts,dataint3,jtag->tbname from jsons1 where dataint>=1 and jtag->'location' in ('tianjing','123') and jtag?'tbname'") - # tdSql.checkRows(1) + tdSql.execute("select ts,jtag from jsons1 where dataint>=1 and jtag->'location' in ('tianjing','123') and jtag?'tbname'") + tdSql.checkRows(1) # tdSql.checkData(0, 2, 'tt') # query normal column and tag column tdSql.query("select jtag3->'',dataint3 from jsons3") tdSql.checkRows(4) - # query child table - - tdSql.error("select * from jsons3_2 where jtag3->'k1'=true;") + tdSql.query("select tbname,dataint3,jtag3->'k1' from jsons3;") + tdSql.checkRows(4) + for i in range(4): + if tdSql.queryResult[i][1] == 4: + tdSql.checkData(i, 2, 'true') + + # query child table + # tdSql.error("select * from jsons3_2 where jtag3->'k1'=true;") # tdSql.checkData(0, 0, None) # tdSql.checkRows(3) -- GitLab