ZSTD_DECOMPRESS
Syntax
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> ZSTD_DECOMPRESS[ZSTD_DECOMPRESS]:::quoted
ZSTD_DECOMPRESS --> End((END))
Anwendung
Die SQL-Funktion ZSTD_DECOMPRESS dekomprimiert ein blob mithilfe des Zstandard-Algorithmus.
Siehe auch ZSTD_COMPRESS und ZLIB_DECOMPRESS.
Parameter:
- Eingabe (
blob): Dasblob, das entpackt werden soll.
Gibt das dekomprimierte blob zurück.
Beispiele
Im folgenden Beispiel wird ein mit Zstandard komprimiertes blob dekomprimiert und der ursprüngliche Text abgerufen:
select blob_to_text(zstd_decompress(zstd_compress(ascii_to_blob('ACME'))))
-------------------
ACME
Im folgenden Beispiel wird ein mit Zstandard komprimiertes blob entpackt und das Ergebnis in Text umgewandelt:
select to_char(zstd_decompress('KLUv/SA8vQEAwsMMFLAnHd2OTKNtYpi2ISYmwTDAZCECxao8IzN3TMax4dILZvUeu/Ui7ASy4iTxWPjMZwoIAA=='))
-------------------
This is a very long text to test the Zstd compression method