ExamGecko
Question list
Search
Search

List of questions

Search

Related questions

Question 86 - ARA-C01 discussion

Report
Export

Consider the following COPY command which is loading data with CSV format into a Snowflake table from an internal stage through a data transformation query.

This command results in the following error:

SQL compilation error: invalid parameter 'validation_mode'

Assuming the syntax is correct, what is the cause of this error?

A.
The VALIDATION_MODE parameter supports COPY statements that load data from external stages only.
Answers
A.
The VALIDATION_MODE parameter supports COPY statements that load data from external stages only.
B.
The VALIDATION_MODE parameter does not support COPY statements with CSV file formats.
Answers
B.
The VALIDATION_MODE parameter does not support COPY statements with CSV file formats.
C.
The VALIDATION_MODE parameter does not support COPY statements that transform data during a load.
Answers
C.
The VALIDATION_MODE parameter does not support COPY statements that transform data during a load.
D.
The value return_all_errors of the option VALIDATION_MODE is causing a compilation error.
Answers
D.
The value return_all_errors of the option VALIDATION_MODE is causing a compilation error.
Suggested answer: C

Explanation:

The VALIDATION_MODE parameter is used to specify the behavior of the COPY statement when loading data into a table. It is used to specify whether the COPY statement should return an error if any of the rows in the file are invalid or if it should continue loading the valid rows.The VALIDATION_MODE parameter is only supported for COPY statements that load data from external stages1.

The query in the question uses a data transformation query to load data from an internal stage.A data transformation query is a query that transforms the data during the load process, such as parsing JSON or XML data, applying functions, or joining with other tables2.

According to the documentation, VALIDATION_MODE does not support COPY statements that transform data during a load.If the parameter is specified, the COPY statement returns an error1. Therefore, option C is the correct answer.

asked 23/09/2024
Vimal Varughese
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first