Json tag test case, include create table with json tag,
Json tag test case, include create table with json tag, select json tag and query with json tag in where condition, besides, include json tag in group by/order by/join/subquery.
select json tag and query with json tag in where condition,
case1: [TD-12452] fix error if json tag is NULL
besides, include json tag in group by/order by/join/subquery.
case2: [TD-12389] describe child table, tag length error if the tag is json tag
'''
'''
return
return
...
@@ -515,6 +515,23 @@ class TDTestCase:
...
@@ -515,6 +515,23 @@ class TDTestCase:
tdSql.query("select jtag->'tag3' from jsons1_16")
tdSql.query("select jtag->'tag3' from jsons1_16")
tdSql.checkData(0,0,'-2.111000000')
tdSql.checkData(0,0,'-2.111000000')
# test TD-12452
tdSql.execute("ALTER TABLE jsons1_1 SET TAG jtag=NULL")
tdSql.query("select jtag from jsons1_1")
tdSql.checkData(0,0,None)
tdSql.execute("CREATE TABLE if not exists jsons1_20 using jsons1 tags(NULL)")
tdSql.query("select jtag from jsons1_20")
tdSql.checkData(0,0,None)
tdSql.execute("insert into jsons1_21 using jsons1 tags(NULL) values(1591061628000, 11, false, '你就会','')")