提交 0a2201a9 编写于 作者: wmmhello's avatar wmmhello

add test case

上级 73878ab3
......@@ -374,6 +374,15 @@ class TDTestCase:
cname_list.append("jsons1.jtag->'tag1'")
tdSql.checkColNameList(res, cname_list)
# test top/bottom with group by json tag
tdSql.query("select top(dataint,100) from jsons1 group by jtag->'tag1'")
tdSql.checkRows(11)
tdSql.checkData(0, 1, 4)
tdSql.checkData(1, 1, 24)
tdSql.checkData(1, 2, None)
tdSql.checkData(10, 1, 1)
tdSql.checkData(10, 2, '"femail"')
# subquery with json tag
tdSql.query("select * from (select jtag, dataint from jsons1)")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册