ExamGecko
Question list
Search
Search

Question 115 - COF-R02 discussion

Report
Export

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?

A.
It removes the last element of the outer array.
Answers
A.
It removes the last element of the outer array.
B.
It removes the outer array structure and loads the records into separate table rows,
Answers
B.
It removes the outer array structure and loads the records into separate table rows,
C.
It removes the trailing spaces in the last element of the outer array and loads the records into separate table columns
Answers
C.
It removes the trailing spaces in the last element of the outer array and loads the records into separate table columns
D.
It removes the NULL elements from the JSON object eliminating invalid data and enables the ability to load the records
Answers
D.
It removes the NULL elements from the JSON object eliminating invalid data and enables the ability to load the records
Suggested answer: B

Explanation:

Data Size Limitations

The VARIANT data type imposes a 16 MB size limit on individual rows.

For some semi-structured data formats (e.g. JSON), data sets are frequently a simple concatenation of multiple documents. The JSON output from some software is composed of a single huge array containing multiple records. There is no need to separate the documents with line breaks or commas, though both are supported.

If the data exceeds 16 MB, enable the STRIP_OUTER_ARRAY file format option for the COPY INTO

<table> command to remove the outer array structure and load the records into separate table rows:

copy into <table>

from @~/<file>.json

file_format = (type = 'JSON' strip_outer_array = true);

https://docs.snowflake.com/en/user-guide/semistructured-considerations.html

asked 23/09/2024
istvan Balla
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first