The Wayback Machine - https://web.archive.org/web/20201115062718/https://github.com/dbeaver/dbeaver/issues/4979
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

Decompression of blobs #4979

Open
KOLANICH opened this issue Jan 11, 2019 · 5 comments
Open

Decompression of blobs #4979

KOLANICH opened this issue Jan 11, 2019 · 5 comments

Comments

@KOLANICH
Copy link

@KOLANICH KOLANICH commented Jan 11, 2019

Sometimes it is needed to store compressed data in the DB. Unfortunately not all the DBs have built-in compression and FUSE compressed FSes are not available for every OS. So it may make sense to store compressed binary blobs in the DB.

Unfortunately when one sees them in DBeaver he sees them compressed, but often they are needed uncompressed. So it'd be nice to have a feature to decompress the contents of certain columns.

This may be done by injecting an external function into SQL doing decompression.

@serge-rider
Copy link
Member

@serge-rider serge-rider commented Jan 11, 2019

Sound too specific. There are dozens of different compression algorithms moreover it is not clear how particular data types should be compressed (e.g. numbers, timestamps) - in some binary format, plain text or somehow else.

@KOLANICH
Copy link
Author

@KOLANICH KOLANICH commented Jan 11, 2019

There are dozens of different compression algorithms moreover

The most popular are: deflate, lzma, lzma2, brotli, zstd. Data stream type can be either determined by header, or can be provided (some compression libs allow to put raw data without any container headers).

moreover it is not clear how particular data types should be compressed

Compression algorythms usually work on binary data. So the transformation proposed is blob (compressed) <-> blob (decompressed). For other types they should be (de)serialized from/to a binary form first, this is out of scope of this feature IMHO.

@serge-rider
Copy link
Member

@serge-rider serge-rider commented Jan 11, 2019

I think this can be easily (relatively) implemented as a custom value transformer (View As context menu).

@flostadler
Copy link

@flostadler flostadler commented Jul 7, 2019

I'd like to tackle this issue if it is still relevant.

@sachinmukherjee
Copy link

@sachinmukherjee sachinmukherjee commented Sep 12, 2020

Is this issue still open?

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.