-
Notifications
You must be signed in to change notification settings - Fork 753
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
feat(query): Add jq set returning function for processing Variant data with jq filters #16288
Conversation
3721e11
to
3a7a46e
Compare
51350b9
to
93ee6b5
Compare
Rebased against most recent main, fixed clippy and cargo machete errors. |
Thanks for your contribution. You can run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @maxjustus
Thanks for your contribution, this feature is very useful.
Thanks @maxjustus, for your contribution! We should add this new function to the docs. @soyeric128 @b41sh |
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
This adds a
jq
set returning function for working with Variant data. Jq is described as "regexp for json" and is a wonderful addition for processing data in Variant columns. This work was inspired by pgjq which adds jq to postgres and litejq which adds jq to sqlite.the
jq
function being set returning means that you can write jq filters that unnest json data as a part of their evaluation. For example:It uses the lightweight jaq crate which provides a high performance pure rust implementation of jq.
Tests
Type of change
This change is