Json – Snowflake – FLATTEN() – How does it work internally?
I am learning Snowflake right now, and the way FLATTEN() works is a bit counter intuitive. A simple query. SELECT raw:first_name::STRING AS FName, raw:last_name::STRING AS LName, f.value::STRING AS Skill FROM tbl, TABLE(FLATTEN(raw:Skills)) f ORDER BY raw:id::INT LIMIT 5; Elegantly, it…