Which of the following is a valid example of an external table partition column expression?

Master the SnowPro Advanced Architect Test with flashcards, multiple-choice questions, and detailed explanations. Prepare thoroughly for your certification!

Multiple Choice

Which of the following is a valid example of an external table partition column expression?

Explanation:
External table partition columns derive their values from the partition metadata provided by Snowflake, which is exposed as metadata$external_table_partition and stored as JSON. To create a partition column, you extract the needed field from that JSON and cast it to the desired data type. The valid example does exactly that: it parses the JSON, accesses the field named col1, and casts it to varchar. This cleanly yields the partition value for that column. The other options don’t correctly pull the partition value from the JSON metadata (or misuse the metadata). They either try to use a different metadata field without extracting the partition value, or present invalid syntax for extracting the JSON field, so they won’t produce the proper partition key.

External table partition columns derive their values from the partition metadata provided by Snowflake, which is exposed as metadata$external_table_partition and stored as JSON. To create a partition column, you extract the needed field from that JSON and cast it to the desired data type. The valid example does exactly that: it parses the JSON, accesses the field named col1, and casts it to varchar. This cleanly yields the partition value for that column.

The other options don’t correctly pull the partition value from the JSON metadata (or misuse the metadata). They either try to use a different metadata field without extracting the partition value, or present invalid syntax for extracting the JSON field, so they won’t produce the proper partition key.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy