-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Enhancement](good-first-issue) Support some compress functions #45530
Comments
Hi @zclllyybb, I can pick this issue and work on it. You can allot it to me. Thanks :) |
welcome! just ask me if you have any question |
Hi @zclllyybb, there are many compression algorithms implemented in the block_compression.cpp file. Do we want to support multiple compression algorithms for this function with function signature like COMPRESS(String, compression_algorithm)? |
We dont need to support the second argument. There's two reasons:
|
Search before asking
Description
we need implement the functions compress and uncompress just like mysql did.
Solution
To support a function, we need:
function implementation and registration in BE. the utils
be/src/util/block_compression.cpp#ZlibBlockCompression
may be very useful. we could only supportString->String
singature. so you could encode theColumnString
toSlice
and use the util to compress it. vice versa.function signature and visitor for nereids planner in FE
the constant fold implementation in FE, behave just same with it in BE, like functions/executable/NumericArithmetic.java in https://github.com/apache/doris/pull/40744/files
another function docs pr in https://github.com/apache/doris-website
you can reference pr like https://github.com/apache/doris/pull/33005/files
and ATTN! we must have enough testcases, like what https://github.com/apache/doris/pull/40462/files did.
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: