Skip to content
New issue

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

docs: add json_path_query #11174

Merged
merged 2 commits into from
Apr 22, 2023
Merged

Conversation

BohuTANG
Copy link
Member

… func

I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/

Summary

  • JSON_PATH_QUERY: Get all JSON items returned by JSON path for the specified JSON value.
  • JSON_PATH_QUERY_ARRAY: Get all JSON items returned by JSON path for the specified JSON value and wrap a result into an array.
  • JSON_PATH_QUERY_FIRST: Get the first JSON item returned by JSON path for the specified JSON value.

Closes #issue

@vercel
Copy link

vercel bot commented Apr 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
databend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 22, 2023 8:07am

@BohuTANG BohuTANG requested a review from b41sh April 22, 2023 08:04
@mergify mergify bot added the pr-doc this PR needs/changes the documents or websites label Apr 22, 2023
@BohuTANG
Copy link
Member Author

This looks a bug:

SELECT     name,     typeof(JSON_PATH_QUERY(details, '$.features.*')) AS all_features FROM     products;
ERROR 1105 (HY000): Code: 1001, Text = Logical error, there is a bug!.

cc @b41sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-doc this PR needs/changes the documents or websites
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant