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

compress and uncompress function #20507

Open
wangsimo0 opened this issue Mar 29, 2023 · 10 comments · May be fixed by #21830
Open

compress and uncompress function #20507

wangsimo0 opened this issue Mar 29, 2023 · 10 comments · May be fixed by #21830

Comments

@wangsimo0
Copy link
Contributor

In some scenario, the data is too big to insert into StarRocks, so we need a function to compress the data during ingestion, and a function to uncompress the data during query.

so here is a proposal

compress

syntax

compress(input [,method])

in which, the input is a string value to be compressed, and the method is the compression method. By now, StarRocks support the following compress method:

  • SNAPPY
  • ZLIB
  • ZSTD
  • LZ4
    the parameter should be case-insensitive. The default value of method is ZLIB.

uncompress

syntax

uncompress(input [,method])

also the method supports :

  • SNAPPY
  • ZLIB
  • ZSTD
  • LZ4
    the parameter should be case-insensitive. The default value of method is ZLIB.
@Cai-Yao
Copy link

Cai-Yao commented Apr 6, 2023

Can I have a try?

@kateshaowanjou
Copy link
Contributor

@Cai-Yao I know compress and uncompress are sharing one issue number but they are actually two different issues so I'll assign compress to you first. Is it ok?

@Cai-Yao
Copy link

Cai-Yao commented Apr 6, 2023

@Cai-Yao I know compress and uncompress are sharing one issue number but they are actually two different issues so I'll assign compress to you first. Is it ok?

OK.

@Cai-Yao Cai-Yao linked a pull request Apr 18, 2023 that will close this issue
16 tasks
@wangsimo0 wangsimo0 added the good first issue Good for newcomers label May 12, 2023
@kateshaowanjou
Copy link
Contributor

@Cai-Yao Hi buddy, are you working on uncompress too? If you have any questions, feel free to join WeChat for discussion: https://ma3you.com/articles_qrcode_show/b12e90J.png?le_time=220907203008013206

@Cai-Yao
Copy link

Cai-Yao commented May 17, 2023

@Cai-Yao Hi buddy, are you working on uncompress too? If you have any questions, feel free to join WeChat for discussion: https://ma3you.com/articles_qrcode_show/b12e90J.png?le_time=220907203008013206

I am in the process of implementing it, it should be similar to the compress function, not much difficulty.
But the link you posted seems to be disabled.

@kateshaowanjou
Copy link
Contributor

@Cai-Yao Here's the updated link:https://853921.ma3you.cn/articles/b12e90J/

@Cai-Yao
Copy link

Cai-Yao commented May 17, 2023

@Cai-Yao Hi buddy, are you working on uncompress too? If you have any questions, feel free to join WeChat for discussion: https://ma3you.com/articles_qrcode_show/b12e90J.png?le_time=220907203008013206

OK, thanks.
I found out that I was already in the WeChat group with the nickname WenYao

Copy link

We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!

@Cai-Yao
Copy link

Cai-Yao commented Nov 25, 2023

We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!

In progress.

Copy link

We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants