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

Support for more JSON path functions #10304

Closed
kesavkolla opened this issue Mar 2, 2023 · 0 comments · Fixed by #11142
Closed

Support for more JSON path functions #10304

kesavkolla opened this issue Mar 2, 2023 · 0 comments · Fixed by #11142
Assignees
Labels
C-feature Category: feature

Comments

@kesavkolla
Copy link

Summary

In OLAP usecases data locality tkaes precedence over data normalization the usage of nested data is very common practice. People use arrays and arrays of structs to hold data together with main data.

Eg: If we need to design an account table with multiple addresses we create address as JSON and store array of address as JSON objects.

To better handle these nested datatypes specially list of structs we need a better JSON Path handling. PostgreSQL has functions like

jsonb_path_query_first
jsonb_path_query
jsonb_path_query_array

These type of functions will be useful for handling nested structures.

Integrating https://github.com/besok/jsonpath-rust library to expose these type functions will greatly help usability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants