
Answer-first summary for fast verification
Answer: TYPEOF
The TYPEOF function in Snowflake is specifically designed to report the data type of a value stored in a VARIANT column, returning the type as a string. This directly addresses the question's requirement to identify the kind of value in a VARIANT column. The community discussion confirms this with 100% consensus on option D, supported by upvoted comments referencing Snowflake documentation that explicitly states TYPEOF's purpose for VARIANT columns. Other options are less suitable: CHECK_JSON validates JSON format but doesn't return data types; IS_ARRAY checks if a value is an array but doesn't identify other data types; IS_JSON checks if a string is valid JSON but doesn't return specific data types.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.