Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfay committed Jun 29, 2023
1 parent def4813 commit 16b2631
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions test/corpus/json.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
JSON traversal
================================================================================

SELECT
"user"->>'login',
"user"->'adress' ->> 'city',
SELECT
"user"->>'login' as login,
"user"->'address' ->> 'city',
"user"->'address' ->> 'state' as userstate,
"user" #> 'items',
"user" #>> 'more_items'
AS username FROM users;
"user" #>> 'more_items' AS more
FROM users;

--------------------------------------------------------------------------------

Expand All @@ -20,9 +21,27 @@ AS username FROM users;
(json_traversal
(literal))
(keyword_as)
(identifier))))
(from
(keyword_from)
(relation
(object_reference
(identifier))))))
(identifier))
(term
(json_traversal
(json_traversal
(literal))))
(term
(json_traversal
(json_traversal
(literal)))
(keyword_as)
(identifier))
(term
(json_traversal
(literal)))
(term
(json_traversal
(literal))
(keyword_as)
(identifier))))
(from
(keyword_from)
(relation
(object_reference
(identifier))))))

0 comments on commit 16b2631

Please sign in to comment.