Skip to content

Commit 85b9bfe

Browse files
author
James Cor
committed
add test
1 parent 2408dc5 commit 85b9bfe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

enginetest/queries/json_table_queries.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ var JSONTableQueryTests = []QueryTest{
139139
{9},
140140
},
141141
},
142+
{
143+
Query: "select * from json_table('[\"foo\", \"bar\"]', \"$[*]\" columns(tag text path '$')) as tags where tag like 'foo';",
144+
Expected: []sql.Row{
145+
{"foo"},
146+
},
147+
},
142148
}
143149

144150
var JSONTableScriptTests = []ScriptTest{

0 commit comments

Comments
 (0)