When using the COPY INTO [table] command with the CSV file format, how does the MATCH_BY_COLUMN_NAME parameter behave?
Select an option, then click Submit answer.
Reference / correct answer:
It expects a header to be present in the CSV file, which is matched to a case-sensitive table column name.
Most accepted answer: A. It expects a header to be present in the CSV file, which is matched to a case-sensitive table column name.
Community votes: A=1
Selected Answer: A CSV is now supported upvoted 1 times
Correct Answer: C COPY INTO <table> Command: MATCH_BY_COLUMN_NAME Copy Option Returns Error w when Loading CSV Data upvoted 1 times
When MATCH_BY_COLUMN_NAME is specified, Snowflake expects the first row of the CSV file to contain column headers. Snowflake then matches these column headers (which are case-sensitive) with the column names in the target table. The matching is done based on the order and names of the columns in the CSV file header and the target table. If a column in the CSV file header does not match any column in the target table, it may cause an error or a warning, depending on other parameters and settings. upvoted 1 times
correct answer is C https://community.snowflake.com/s/article/COPY-INTO-table-Command-MATCH-BY-COLUMN-NAME-Copy-Option-Returns-Error-When-Loading-CSV-Data upvoted 2 times
Since option A isn't true unless the parameter is set to CASE_SENSITIVE and CSV column name detection is in Open Private Preview only , the correct answer here should be C upvoted 2 times