-
Notifications
You must be signed in to change notification settings - Fork 747
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): Support generate virtual columns #11590
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
fbb57fc
to
0e50466
Compare
What does |
src/query/storages/fuse/src/io/read/block/block_reader_native.rs
Outdated
Show resolved
Hide resolved
We want the virtual columns to be generated automatically, without the user having to create them manually. So a Python script is needed to analyze the query log, find the internal JSON fields that are frequently queried, and call the |
cc @soyeric128 for documentation, thanks. |
* feat(query): Support generate virtual columns * fix * fix * fix taplo fmt * add tests * fix * fix * add test * fix * add tests * add alter virtual column * fix tests * add virtual block folder * fix * fix * fix meta api * fix * fix * fix --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Support generating virtual columns
Add the following SQLs to create, drop and generate virtual columns:
Using a log analysis script to get which JSON internal fields are frequently queried and then calls
create virtual columns ..
to create virtual columns for these fields, and then callsgenerate virtual columns ..
to generate virtual columns. Once the virtual columns have been generated, we can read the data from the JSON internal fields directly through the virtual columns.for example:
Part of #6994