ExamGecko
Question list
Search
Search

Question 709 - COF-C02 discussion

Report
Export

How can the outer array structure of a semi-structured file be removed?

A.

Use the parameter strip_outer_array = true in a COPY INTO <table> command.

Answers
A.

Use the parameter strip_outer_array = true in a COPY INTO <table> command.

B.

Set the file format to eliminate any outer array structure before initiating the COPY INTO <table> command.

Answers
B.

Set the file format to eliminate any outer array structure before initiating the COPY INTO <table> command.

C.

Filter the outer array structure using a PUT command with the include_outer_array = false parameter.

Answers
C.

Filter the outer array structure using a PUT command with the include_outer_array = false parameter.

D.

Use the FLATTEN command with the outer_array = false parameter.

Answers
D.

Use the FLATTEN command with the outer_array = false parameter.

Suggested answer: A

Explanation:

In Snowflake, the parameter strip_outer_array = true can be set in the COPY INTO <table> command to remove the outer array structure from a semi-structured file. This parameter is useful for JSON files or similar data formats where an array might wrap the data, allowing Snowflake to directly load the inner elements as table rows.

asked 12/11/2024
Adrian Petrisoaia
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first