diff --git a/tests/pytest/stable/json_tag2.rawsql b/tests/pytest/stable/json_tag2.rawsql index 22c0a1a64b4d3c81f6c3ca121614e41fd0a40211..337f58dafcc871d79292639a833df53ad9325d46 100644 --- a/tests/pytest/stable/json_tag2.rawsql +++ b/tests/pytest/stable/json_tag2.rawsql @@ -79,9 +79,9 @@ select * from jsons1 where jtag->'tag1' is null select * from jsons1 where jtag->'tag4' is null select * from jsons1 where jtag->'tag3' is not null -select * from jsons1 where jtag?'tag1' -select * from jsons1 where jtag?'tag3' -select * from jsons1 where jtag?'tag_no_exist' +select * from jsons1 where jtag conatins 'tag1' +select * from jsons1 where jtag conatins 'tag3' +select * from jsons1 where jtag conatins 'tag_no_exist' select * from jsons1 where jtag->'tag1'=false and jtag->'tag2'='beijing' select * from jsons1 where jtag->'tag1'=false or jtag->'tag2'='beijing' @@ -89,12 +89,12 @@ select * from jsons1 where jtag->'tag1'=false and jtag->'tag2'='shanghai' select * from jsons1 where jtag->'tag1'=false and jtag->'tag2'='shanghai' select * from jsons1 where jtag->'tag1'=13 or jtag->'tag2'>35 select * from jsons1 where jtag->'tag1'=13 or jtag->'tag2'>35 -select * from jsons1 where jtag->'tag1' is not null and jtag?'tag3' -select * from jsons1 where jtag->'tag1'='femail' and jtag?'tag3' +select * from jsons1 where jtag->'tag1' is not null and jtag conatins 'tag3' +select * from jsons1 where jtag->'tag1'='femail' and jtag conatins 'tag3' select * from jsons1 where tbname = 'jsons1_1' -select * from jsons1 where tbname = 'jsons1_1' and jtag?'tag3' -select * from jsons1 where tbname = 'jsons1_1' and jtag?'tag3' and dataint=3 -select * from jsons1 where tbname = 'jsons1_1' and jtag?'tag3' and dataint=23 +select * from jsons1 where tbname = 'jsons1_1' and jtag conatins 'tag3' +select * from jsons1 where tbname = 'jsons1_1' and jtag conatins 'tag3' and dataint=3 +select * from jsons1 where tbname = 'jsons1_1' and jtag conatins 'tag3' and dataint=23 select *,tbname from jsons1 where jtag->'tag2' like 'bei%' select *,tbname from jsons1 where jtag->'tag1' like 'fe%' and jtag->'tag2' is not null @@ -134,4 +134,4 @@ select * from (select jtag, dataint from jsons1) select jtag->'tag1' from (select jtag->'tag1', dataint from jsons1) -select ts,tbname,jtag->'tag1' from (select jtag->'tag1',tbname,ts from jsons1 order by ts) \ No newline at end of file +select ts,tbname,jtag->'tag1' from (select jtag->'tag1',tbname,ts from jsons1 order by ts)