CREATE EXTERNAL FILE FORMAT
defines an external access definition
What changes
- Input
- catalog
- Output or change
- external data source or file format definition
Syntax at a glance
CREATE EXTERNAL FILE FORMAT file_format_name WITH ( FORMAT_TYPE = DELIMITEDTEXT [ , FORMAT_OPTIONS ( <format_options> [ ,...n ] ) ] [ , DATA_COMPRESSION = { 'org.apache.hadoop.io.compress.GzipCodec' } ]);
Work example
An external table needs a named file format for a delimited or columnar source.
Test field delimiters, encoding, compression, and rejected-row behavior against a small synthetic file.
Check your work The format reads every test row with the expected column boundaries and data types.
Open Microsoft Learn for full syntax, permissions, and details for your version.