Skip to content

Commit a77fc5a

Browse files
Merge pull request #33702 from jovanpop-msft/patch-49
STRING_DELIMITER could be one character in serverless pool
2 parents 5be7ffd + 0c325e0 commit a77fc5a

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

docs/t-sql/statements/create-external-file-format-transact-sql.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Optional. Only for delimited text data types.
193193

194194
Only serverless SQL pools in Azure Synapse Analytics support `PARSER_VERSION`.
195195

196-
Serverless SQL pools do not support the `DATE_FORMAT` option.
196+
Serverless SQL pools don't support the `DATE_FORMAT` option.
197197

198198
### DATA_COMPRESSION = *data_compression_method*
199199

@@ -261,7 +261,10 @@ Examples:
261261

262262
`STRING_DELIMITER = *string_delimiter*`
263263

264-
Specifies the field terminator for data of type string in the text-delimited file. The string delimiter is one or more characters in length and is enclosed with single quotes. The default is the empty string "". For guaranteed support, we recommend using one or more ASCII characters.
264+
Specifies a character that encloses the textual values in the text-delimited file. The default is the empty string "". The value of `STRING_DELIMITER` is functionally equivalent to the [FIELDQUOTE](../functions/openrowset-transact-sql.md#fieldquote--field_quote) option in the `OPENROWSET` function.
265+
266+
> [!NOTE]
267+
> Hadoop tables in Synapse dedicated SQL pools enable you to specify one or more characters in STRING_DELIMITER. In serverless SQL pool, you can use only one character.
265268
266269
Examples:
267270

@@ -273,7 +276,7 @@ Examples:
273276

274277
- `STRING_DELIMITER = ꞌ,ꞌ`
275278

276-
- `STRING_DELIMITER = '0x7E0x7E'` (Two tildes, for example, `~~`)
279+
- `STRING_DELIMITER = '0x7E0x7E'` (Two tildes, for example, `~~`) - supported in dedicated SQL pool.
277280

278281
#### FIRST_ROW = *first_row_int*
279282

@@ -303,7 +306,7 @@ When DATE_FORMAT isn't specified or is the empty string, PolyBase uses the follo
303306
- **time**: `'HH:mm:ss'`
304307

305308
> [!IMPORTANT]
306-
> Specifying custom `DATE_FORMAT` will override all default type formats. This means that you will need to have the same date formats in all datetime, date, and time cells in your files. With the overridden `DATE_FORMAT` you cannot have date and time values in different format.
309+
> Specifying custom `DATE_FORMAT` overrides all default type formats. This means that you will need to have the same date formats in all datetime, date, and time cells in your files. With the overridden `DATE_FORMAT`, you cannot have date and time values in different format.
307310
308311
**Example date formats** are in the following table:
309312

@@ -317,16 +320,16 @@ Notes about the table:
317320

318321
|Date Type|Example|Description|
319322
|---------------|-------------|-----------------|
320-
|**datetime**|DATE_FORMAT = `yyyy-MM-dd HH:mm:ss.fff`|In addition to year, month and day, this date format includes 00-24 hours, 00-59 minutes, 00-59 seconds, and 3 digits for milliseconds.|
321-
|**datetime**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffftt`|In addition to year, month and day, this date format includes 00-12 hours, 00-59 minutes, 00-59 seconds, 3 digits for milliseconds, and AM, am, PM, or pm. |
323+
|**datetime**|DATE_FORMAT = `yyyy-MM-dd HH:mm:ss.fff`|In addition to year, month and day, this date format includes 00-24 hours, 00-59 minutes, 00-59 seconds, and three digits for milliseconds.|
324+
|**datetime**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffftt`|In addition to year, month and day, this date format includes 00-12 hours, 00-59 minutes, 00-59 seconds, three digits for milliseconds, and `AM`, `am`, `PM`, or `pm`. |
322325
|**smalldatetime**|DATE_FORMAT = `yyyy-MM-dd HH:mm`|In addition to year, month, and day, this date format includes 00-23 hours, 00-59 minutes.|
323-
|**smalldatetime**|DATE_FORMAT = `yyyy-MM-dd hh:mmtt`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, no seconds, and AM, am, PM, or pm.|
326+
|**smalldatetime**|DATE_FORMAT = `yyyy-MM-dd hh:mmtt`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, no seconds, and `AM`, `am`, `PM`, or `pm`.|
324327
|**date**|DATE_FORMAT = `yyyy-MM-dd`|Year, month, and day. No time element is included.|
325328
|**date**|DATE_FORMAT = `yyyy-MMM-dd`|Year, month, and day. When month is specified with `MMM`, the input value is one or the strings, `Jan`, `Feb`, `Mar`, `Apr`, `May`, `Jun`, `Jul`, `Aug`, `Sep`, `Oct`, `Nov`, or `Dec`.|
326-
|**datetime2**|DATE_FORMAT = `yyyy-MM-dd HH:mm:ss.fffffff`|In addition to year, month, and day, this date format includes 00-23 hours, 00-59 minutes, 00-59 seconds, and 7 digits for milliseconds.|
327-
|**datetime2**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffffffftt`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, 00-59 seconds, 7 digits for milliseconds, and AM, am, PM, or pm.|
329+
|**datetime2**|DATE_FORMAT = `yyyy-MM-dd HH:mm:ss.fffffff`|In addition to year, month, and day, this date format includes 00-23 hours, 00-59 minutes, 00-59 seconds, and seven digits for milliseconds.|
330+
|**datetime2**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffffffftt`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, 00-59 seconds, seven digits for milliseconds, and `AM`, `am`, `PM`, or `pm`.|
328331
|**datetimeoffset**|DATE_FORMAT = `yyyy-MM-dd HH:mm:ss.fffffff zzz`|In addition to year, month, and day, this date format includes 00-23 hours, 00-59 minutes, 00-59 seconds, and 7 digits for milliseconds, and the timezone offset which you put in the input file as `{+|-}HH:ss`. For example, since Los Angeles time without daylight savings is 8 hours behind UTC, a value of -08:00 in the input file specifies the timezone for Los Angeles.|
329-
|**datetimeoffset**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffffffftt zzz`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, 00-59 seconds, 7 digits for milliseconds, (AM, am, PM, or pm), and the timezone offset. See the description in the previous row.|
332+
|**datetimeoffset**|DATE_FORMAT = `yyyy-MM-dd hh:mm:ss.ffffffftt zzz`|In addition to year, month, and day, this date format includes 00-11 hours, 00-59 minutes, 00-59 seconds, seven digits for milliseconds, (`AM`, `am`, `PM`, or `pm`), and the timezone offset. See the description in the previous row.|
330333
|**time**|DATE_FORMAT = `HH:mm:ss`|There is no date value, only 00-23 hours, 00-59 minutes, and 00-59 seconds.|
331334

332335
#### Supported date and time formats

0 commit comments

Comments
 (0)