I've got base64 encoded, gzipped json in a Snowflake binary column that I'm trying to unpack.
With the query:
select
base64_encode(my_binary_data) as my_base64_string
from my_table
I get a base64 encoded string, which I can cut n' paste into a bash script and pipe through:
echo $my_base64_string | base64 -d | gunzip
and get valid results. My question is, can I accomplish this through a query? I've tried some variations with decompress_string()
, but I can't figure it out. Any suggestions?