Skip to content

Commit 743df36

Browse files
authored
Merge pull request #134367 from filippopovic/sqlod-parser_version-external-tables
Update develop-tables-external-tables.md
2 parents 5e4e4ef + 3b647c7 commit 743df36

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

articles/synapse-analytics/sql/develop-tables-external-tables.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,38 @@ By creating an external file format, you specify the actual layout of the data r
160160

161161
### Syntax for CREATE EXTERNAL FILE FORMAT
162162

163+
#### [SQL pool](#tab/sql-pool)
164+
165+
```syntaxsql
166+
-- Create an external file format for PARQUET files.
167+
CREATE EXTERNAL FILE FORMAT file_format_name
168+
WITH (
169+
FORMAT_TYPE = PARQUET
170+
[ , DATA_COMPRESSION = {
171+
'org.apache.hadoop.io.compress.SnappyCodec'
172+
| 'org.apache.hadoop.io.compress.GzipCodec' }
173+
]);
174+
175+
--Create an external file format for DELIMITED TEXT files
176+
CREATE EXTERNAL FILE FORMAT file_format_name
177+
WITH (
178+
FORMAT_TYPE = DELIMITEDTEXT
179+
[ , DATA_COMPRESSION = 'org.apache.hadoop.io.compress.GzipCodec' ]
180+
[ , FORMAT_OPTIONS ( <format_options> [ ,...n ] ) ]
181+
);
182+
183+
<format_options> ::=
184+
{
185+
FIELD_TERMINATOR = field_terminator
186+
| STRING_DELIMITER = string_delimiter
187+
| First_Row = integer
188+
| USE_TYPE_DEFAULT = { TRUE | FALSE }
189+
| Encoding = {'UTF8' | 'UTF16'}
190+
}
191+
```
192+
193+
#### [SQL on-demand](#tab/sql-on-demand)
194+
163195
```syntaxsql
164196
-- Create an external file format for PARQUET files.
165197
CREATE EXTERNAL FILE FORMAT file_format_name
@@ -189,6 +221,9 @@ WITH (
189221
}
190222
```
191223

224+
---
225+
226+
192227
### Arguments for CREATE EXTERNAL FILE FORMAT
193228

194229
file_format_name- Specifies a name for the external file format.

0 commit comments

Comments
 (0)