@@ -7,7 +7,7 @@ manager: craigg
7
7
ms.service : synapse-analytics
8
8
ms.topic : conceptual
9
9
ms.subservice :
10
- ms.date : 02/19 /2020
10
+ ms.date : 05/13 /2020
11
11
ms.author : kevin
12
12
ms.reviewer : igorstan
13
13
ms.custom : azure-synapse
@@ -83,30 +83,43 @@ Defining external tables involves specifying the data source, the format of the
83
83
84
84
When loading Parquet, the SQL data type mapping is:
85
85
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
+
110
123
111
124
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.
112
125
0 commit comments