We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_json_object
from_json
We find some user will first tranform a json string into a map or other structure, and then access one field of the strcuture, as following
from_json(json_str, 'map<string,string>')['live_type']
We may could use get_json_object to replace this query.
The text was updated successfully, but these errors were encountered:
We compare the two methods as following
select count(x) from (select from_json(s, 'Map<String, String>')['key2'] as x from test_map_json);
select count(x) from (select get_json_object(s, '$.key2') as x from test_map_json);
Sorry, something went wrong.
from_json(s, 'Map<String, String>')[k]
get_json_object(s, '$.k')
Successfully merging a pull request may close this issue.
Description
We find some user will first tranform a json string into a map or other structure, and then access one field of the strcuture, as following
We may could use
get_json_object
to replace this query.The text was updated successfully, but these errors were encountered: