Skip to content

Commit 0c1382e

Browse files
Merge pull request #25449 from WilliamDAssafMSFT/20230105-external-table-synapse-utf8
20230105 1525 utf-8 synapse external table caveat
2 parents 2cec65a + 6f5fe4d commit 0c1382e

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

docs/t-sql/statements/create-external-table-transact-sql.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "CREATE EXTERNAL TABLE (Transact-SQL)"
33
description: CREATE EXTERNAL TABLE (Transact-SQL) creates an external table.
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
6-
ms.date: 10/07/2022
6+
ms.date: 01/05/2023
77
ms.service: sql
88
ms.subservice: t-sql
99
ms.topic: reference
@@ -934,7 +934,7 @@ The one to three-part name of the table to create. For an external table, only t
934934
CREATE EXTERNAL TABLE supports the ability to configure column name, data type, nullability, and collation. You can't use the DEFAULT CONSTRAINT on external tables.
935935
936936
> [!NOTE]
937-
> `Text`, `nText` and `XML` are not supported data types for columns in external tables for Azure SQL Warehouse.
937+
> Deprecated data types `text`, `ntext` and `XML` are not supported data types for columns in external tables for Synapse Analytics.
938938
939939
The column definitions, including the data types and number of columns, must match the data in the external files. If there's a mismatch, the file rows will be rejected when querying the actual data.
940940

@@ -1049,6 +1049,9 @@ PolyBase can push some of the query computation to Hadoop to improve query perfo
10491049
10501050
You can create many external tables that reference the same or different external data sources.
10511051
1052+
Pay attention to source data using the UTF-8 collation. For any source data using the UTF-8 collation, you must manually provide a non-UTF-8 collation each UTF-8 column in the CREATE EXTERNAL TABLE statement. This is because UTF-8 support does not extend to external tables. When you attempt to create an external table with a UTF-8 collation, you will receive an `Unsupported collation` error message. If the external table's database collation is a UTF-8 collation, external table creation will fail unless you provide an explicit non-UTF-8 column collation, for example, `[UTF8_column] varchar(128) COLLATE LATIN1_GENERAL_100_CI_AS_KS_WS NOT NULL,`.
1053+
1054+
10521055
## Limitations and restrictions
10531056

10541057
Since the data for an external table is not under the direct management control of Azure Synapse, it can be changed or removed at any time by an external process. As a result, query results against an external table aren't guaranteed to be deterministic. The same query can return different results each time it runs against an external table. Similarly, a query might fail if the external data is moved or removed.

0 commit comments

Comments
 (0)