I convert tables from one format to another, from uncompressed to compressed (Snappy, Gzip etc).
I thought I could rely on describe [formatted|extended] tblname until I read this. DESCRIBE Statement
It states
The Compressed field is not a reliable indicator of whether the table contains compressed data. It typically always shows No, because the compression settings only apply during the session that loads data and are not stored persistently with the table metadata.
How do I find out if a table is compressed and what codec is used? I don't mind using Spark to get that info.