Skip to content

Commit b003265

Browse files
authored
Merge pull request #115184 from kevinvngo/patch-162
Updated type mapping column
2 parents 99bffcf + b9e0cbe commit b003265

File tree

1 file changed

+38
-25
lines changed

1 file changed

+38
-25
lines changed

articles/synapse-analytics/sql-data-warehouse/design-elt-data-loading.md

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: craigg
77
ms.service: synapse-analytics
88
ms.topic: conceptual
99
ms.subservice:
10-
ms.date: 02/19/2020
10+
ms.date: 05/13/2020
1111
ms.author: kevin
1212
ms.reviewer: igorstan
1313
ms.custom: azure-synapse
@@ -83,30 +83,43 @@ Defining external tables involves specifying the data source, the format of the
8383

8484
When loading Parquet, the SQL data type mapping is:
8585

86-
| **Parquet Data Type** | **SQL Data Type** |
87-
| :-------------------: | :---------------: |
88-
| tinyint | tinyint |
89-
| smallint | smallint |
90-
| int | int |
91-
| bigint | bigint |
92-
| boolean | bit |
93-
| double | float |
94-
| float | real |
95-
| double | money |
96-
| double | smallmoney |
97-
| string | nchar |
98-
| string | nvarchar |
99-
| string | char |
100-
| string | varchar |
101-
| binary | binary |
102-
| binary | varbinary |
103-
| timestamp | date |
104-
| timestamp | smalldatetime |
105-
| timestamp | datetime2 |
106-
| timestamp | datetime |
107-
| timestamp | time |
108-
| date | date |
109-
| decimal | decimal |
86+
| Parquet type | Parquet logical type (annotation) | SQL data type |
87+
| :----------------------------------------------------------: | :-----------------------------------: | :--------------: |
88+
| BOOLEAN | | bit |
89+
| BINARY / BYTE_ARRAY | | varbinary |
90+
| DOUBLE | | float |
91+
| FLOAT | | real |
92+
| INT32 | | int |
93+
| INT64 | | bigint |
94+
| INT96 | | datetime2 |
95+
| FIXED_LEN_BYTE_ARRAY | | binary |
96+
| BINARY | UTF8 | nvarchar |
97+
| BINARY | STRING | nvarchar |
98+
| BINARY | ENUM | nvarchar |
99+
| BINARY | UUID | uniqueidentifier |
100+
| BINARY | DECIMAL | decimal |
101+
| BINARY | JSON | nvarchar(MAX) |
102+
| BINARY | BSON | varbinary(max) |
103+
| FIXED_LEN_BYTE_ARRAY | DECIMAL | decimal |
104+
| BYTE_ARRAY | INTERVAL | varchar(max), |
105+
| INT32 | INT(8, true) | smallint |
106+
| INT32 | INT(16, true) | smallint |
107+
| INT32 | INT(32, true) | int |
108+
| INT32 | INT(8, false) | tinyint |
109+
| INT32 | INT(16, false) | int |
110+
| INT32 | INT(32, false) | bigint |
111+
| INT32 | DATE | date |
112+
| INT32 | DECIMAL | decimal |
113+
| INT32 | TIME (MILLIS ) | time |
114+
| INT64 | INT(64, true) | bigint |
115+
| INT64 | INT(64, false ) | decimal(20,0) |
116+
| INT64 | DECIMAL | decimal |
117+
| INT64 | TIME (MICROS / NANOS) | time |
118+
| INT64 | TIMESTAMP (MILLIS / MICROS / NANOS) | datetime2 |
119+
| [Complex type](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fparquet-format%2Fblob%2Fmaster%2FLogicalTypes.md%23lists&data=02\|01\|kevin%40microsoft.com\|19f74d93f5ca45a6b73c08d7d7f5f111\|72f988bf86f141af91ab2d7cd011db47\|1\|0\|637215323617803168&sdata=6Luk047sK26ijTzfvKMYc%2FNu%2Fz0AlLCX8lKKTI%2F8B5o%3D&reserved=0) | LIST | varchar(max) |
120+
| [Complex type](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fparquet-format%2Fblob%2Fmaster%2FLogicalTypes.md%23maps&data=02\|01\|kevin%40microsoft.com\|19f74d93f5ca45a6b73c08d7d7f5f111\|72f988bf86f141af91ab2d7cd011db47\|1\|0\|637215323617803168&sdata=FiThqXxjgmZBVRyigHzfh5V7Z%2BPZHjud2IkUUM43I7o%3D&reserved=0) | MAP | varchar(max) |
121+
122+
110123

111124
For an example of creating external objects, see the [Create external tables](load-data-from-azure-blob-storage-using-polybase.md#create-external-tables-for-the-sample-data) step in the loading tutorial.
112125

0 commit comments

Comments
 (0)