How would you work with semi-structured data in Snowflake, including the significance of the FLATTEN function?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to store and query semi-structured data such as JSON in Snowflake and why the FLATTEN function matters. Tests knowledge of VARIANT columns, path and cast notation, unnesting arrays with LATERAL, and edge cases such as empty arrays and nested lists.