liutang123 commented on PR #50151:
URL: https://github.com/apache/doris/pull/50151#issuecomment-2833556953
If you want to implements `json path` param, you can refer to the following
ideas:
First, replace `SimdJSONParser::Element` with `JsonbDocument`.
Second, find all elements that match the path.
Third, use the elements find in second step as the root element to find
their child elements.
A test case:
```
select json_search('["abc", [{"k": "10"}, "10"], [{"x":"10"}],
{"y":"bcd"}]', 'all', '10', null, '$[*][*]');
-- ["$[1][0].k", "$[1][1]", "$[2][0].x"]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]