Documentation Invantiveune partie de Invantive cloud
Forums d'Invantive SupportConnectez-vous/inscrivez-vous

ZSTD_DECOMPRESS

Syntaxe

%%{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))

Objet

La fonction SQL ZSTD_DECOMPRESS décompresse une image blob à l'aide de l'algorithme Zstandard.

Voir également ZSTD_COMPRESS et ZLIB_DECOMPRESS.

Paramètres :

  • Entrée (blob : l'image blob à décompresser.

Renvoie : l'blob décompressé.

Exemples

L'exemple suivant décompresse une image blob compressée au format Zstandard et récupère le texte d'origine :

select blob_to_text(zstd_decompress(zstd_compress(ascii_to_blob('ACME'))))

-------------------
ACME

L'exemple suivant décompresse une image blob compressée au format Zstandard et convertit le résultat en texte :

select to_char(zstd_decompress('KLUv/SA8vQEAwsMMFLAnHd2OTKNtYpi2ISYmwTDAZCECxao8IzN3TMax4dILZvUeu/Ui7ASy4iTxWPjMZwoIAA=='))

-------------------
This is a very long text to test the Zstd compression method