Skip to content

Commit 7cc8cb1

Browse files
Merge pull request #272437 from v-luckywang/0417-Difference
[Doc update] Add difference section for MySQL, MariaDB and PostgreSQL
2 parents e3421cb + b969cba commit 7cc8cb1

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

articles/data-factory/connector-mariadb.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: data-factory
77
ms.subservice: data-movement
88
ms.custom: synapse
99
ms.topic: conceptual
10-
ms.date: 02/07/2024
10+
ms.date: 04/17/2024
1111
ms.author: jianleishen
1212
---
1313

@@ -294,6 +294,17 @@ Here are steps that help you upgrade your MariaDB driver version:
294294

295295
1. The latest driver version v2 supports more MariaDB versions. For more information, see [Supported capabilities](connector-mariadb.md#supported-capabilities).
296296

297+
## Differences between MariaDB using the recommended driver version and using the legacy driver version
298+
299+
The table below shows the data type mapping differences between MariaDB connector using the recommended driver version and using the legacy driver version.
300+
301+
|MariaDB data type |Interim service data type (using the recommended driver version) |Interim service data type (using the legacy driver version)|
302+
|:---|:---|:---|
303+
|bit(1)| UInt64|Boolean|
304+
|bit(M), M>1|UInt64|Byte[]|
305+
|bool|Boolean|Int16|
306+
|JSON|String|Byte[]|
307+
297308
## Related content
298309

299310
For a list of data stores supported as sources and sinks by the copy activity, see [supported data stores](copy-activity-overview.md#supported-data-stores-and-formats).

articles/data-factory/connector-mysql.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: data-factory
77
ms.subservice: data-movement
88
ms.custom: synapse
99
ms.topic: conceptual
10-
ms.date: 02/07/2024
10+
ms.date: 04/17/2024
1111
ms.author: jianleishen
1212
---
1313

@@ -323,6 +323,17 @@ Here are steps that help you upgrade your MySQL driver version:
323323

324324
1. The latest driver version v2 supports more MySQL versions. For more information, see [Supported capabilities](connector-mysql.md#supported-capabilities).
325325

326+
## Differences between MySQL using the recommended driver version and using the legacy driver version
327+
328+
The table below shows the data type mapping differences between MySQL connector using the recommended driver version and using the legacy driver version.
329+
330+
|MySQL data type |Interim service data type (using the recommended driver version) |Interim service data type (using the legacy driver version)|
331+
|:---|:---|:---|
332+
|bit(1)| UInt64|Boolean|
333+
|bit(M), M>1|UInt64|Byte[]|
334+
|bool|Boolean|Int16|
335+
|JSON|String|Byte[]|
336+
326337
## Related content
327338

328339
For a list of data stores supported as sources and sinks by the copy activity, see [supported data stores](copy-activity-overview.md#supported-data-stores-and-formats).

articles/data-factory/connector-postgresql.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: data-factory
77
ms.subservice: data-movement
88
ms.custom: synapse
99
ms.topic: conceptual
10-
ms.date: 03/07/2024
10+
ms.date: 04/17/2024
1111
ms.author: jianleishen
1212
---
1313
# Copy data from PostgreSQL using Azure Data Factory or Synapse Analytics
@@ -253,7 +253,7 @@ If you were using `RelationalSource` typed source, it is still supported as-is,
253253

254254
When copying data from PostgreSQL, the following mappings are used from PostgreSQL data types to interim data types used by the service internally. See [Schema and data type mappings](copy-activity-schema-and-type-mapping.md) to learn about how copy activity maps the source schema and data type to the sink.
255255

256-
|PostgreSql data type | Interim service data type | Interim service data type (for the legacy driver version) |
256+
|PostgreSql data type | Interim service data type | Interim service data type for PostgreSQL (legacy) |
257257
|:---|:---|:---|
258258
|`SmallInt`|`Int16`|`Int16`|
259259
|`Integer`|`Int32`|`Int32`|
@@ -317,5 +317,17 @@ Here are steps that help you upgrade your PostgreSQL linked service:
317317

318318
1. The data type mapping for the latest PostgreSQL linked service is different from that for the legacy version. To learn the latest data type mapping, see [Data type mapping for PostgreSQL](#data-type-mapping-for-postgresql).
319319

320+
## Differences between PostgreSQL and PostgreSQL (legacy)
321+
322+
The table below shows the data type mapping differences between PostgreSQL and PostgreSQL (legacy).
323+
324+
|PostgreSQL data type|Interim service data type for PostgreSQL|Interim service data type for PostgreSQL (legacy)|
325+
|:---|:---|:---|
326+
|Money|Decimal|String|
327+
|Timestamp with time zone |DateTime|String|
328+
|Time with time zone |DateTimeOffset|String|
329+
|Interval | TimeSpan|String|
330+
|BigDecimal|Not supported. As an alternative, utilize `to_char()` function to convert BigDecimal to String.|String|
331+
320332
## Related content
321333
For a list of data stores supported as sources and sinks by the copy activity, see [supported data stores](copy-activity-overview.md#supported-data-stores-and-formats).

0 commit comments

Comments
 (0)