COF-C02 · Question #19
A user is loading JSON documents composed of a huge array containing multiple records into Snowflake. The user enables the strip__outer_array file format option What does the STRIP_OUTER_ARRAY file…
The correct answer is B. It removes the outer array structure and loads the records into separate table rows. The STRIP_OUTER_ARRAY file format option in Snowflake is used when loading JSON documents that are composed of a large array containing multiple records. When this option is enabled, it removes the outer array structure, which allows each record within the array to be loaded as…
Question
A user is loading JSON documents composed of a huge array containing multiple records into Snowflake. The user enables the strip__outer_array file format option What does the STRIP_OUTER_ARRAY file format do?
Options
- AIt removes the last element of the outer array.
- BIt removes the outer array structure and loads the records into separate table rows,
- CIt removes the trailing spaces in the last element of the outer array and loads the records into
- DIt removes the NULL elements from the JSON object eliminating invalid data and enables the
How the community answered
(39 responses)- B92% (36)
- C5% (2)
- D3% (1)
Explanation
The STRIP_OUTER_ARRAY file format option in Snowflake is used when loading JSON documents that are composed of a large array containing multiple records. When this option is enabled, it removes the outer array structure, which allows each record within the array to be loaded as a separate row in the table. This is particularly useful for efficiently loading JSON data that is structured as an array of records.
Topics
Community Discussion
No community discussion yet for this question.