-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wildcard support in json extract using simdjson (#12281)
Summary: This change addresses 2 bugs in the wildcard support of json_extract: Bug 1: Failure to iterate on values inside an object, resulting in empty arrays. For eg: calling JSON_EXTRACT( JSON '{"foo": {"a" : {"c": 1 , "d": 3} }, "b": 2}', '$.foo.a.[*]') will return an empty array whereas we expect [1, 3] Bug 2: Inconsistent handling of indefinite results, always returning a JSON array even when the token is not evaluated. or eg: JSON_EXTRACT('({"a": {"b": [123, 456]}})', '$.a.c[*]') should return NULL instead of [] as the key 'c' does not exist. Reviewed By: kevinwilfong Differential Revision: D69281233
- Loading branch information
1 parent
cf48065
commit 2db2e90
Showing
4 changed files
with
73 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters