SSC-FDM-BQ0005
Parsing the CSV header is not supported in external tables, columns must be renamed to match the original names
Description
Currently, Snowflake external tables do not support parsing the header of CSV files. When a external table with no explicit column list and CSV file format is found, SnowConvert will produce the SKIP_HEADER file format option to avoid runtime errors, however, this will cause the table column names to have the autogenerated names c1, c2, ..., cN.
This FDM is generated to notify that the header can not be parsed and that manually renaming the columns is necessary to preserve the original column names.
Code Example
Input Code:
CREATE OR REPLACE EXTERNAL TABLE test.my_external_table_csv
OPTIONS(
FORMAT='CSV',
URIS=['gs://sc_external_table_bucket/folder_with_csv/Employees.csv']
);Output Code:
Recommendations
Please rename the table columns to their original names from the file to complete the transformation
If you need more support, you can email us at [email protected]
Last updated
