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

builtins: add jsonb_path_query #142103

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

normanchenn
Copy link
Member

Previously, the jsonpath data type and parser were created and integrated within each other. This PR adds the jsonb_path_query function and a new pkg/util/jsonpath/eval package which uses the existing work done.

Epic: None
Release note (sql change): Add the jsonb_path_query function, which takes in a JSON object and a Jsonpath query, and returns the resulting JSON object.

@normanchenn normanchenn self-assigned this Feb 27, 2025
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@normanchenn normanchenn force-pushed the norman/jsonb_path_query branch 2 times, most recently from 7520949 to 66658e3 Compare February 27, 2025 22:38
Previously, the `jsonpath` data type and parser were created and
integrated within each other. This PR adds the `jsonb_path_query` function
and a new `pkg/util/jsonpath/eval` package which uses the existing work
done.

Epic: None
Release note (sql change): Add the `jsonb_path_query` function, which
takes in a JSON object and a Jsonpath query, and returns the resulting
JSON object.
@normanchenn normanchenn force-pushed the norman/jsonb_path_query branch from 66658e3 to c65ea85 Compare February 28, 2025 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants