You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Copy data from Greenplum using Azure Data Factory or Synapse Analytics
@@ -66,13 +66,23 @@ The following sections provide details about properties that are used to define
66
66
67
67
## Linked service properties
68
68
69
-
The following properties are supported for Greenplum linked service:
69
+
If you use version 2.0 (Preview), the following properties are supported for Greenplum linked service:
70
70
71
71
| Property | Description | Required |
72
72
|:--- |:--- |:--- |
73
73
| type | The type property must be set to: **Greenplum**| Yes |
74
-
| connectionString | An ODBC connection string to connect to Greenplum. <br/>You can also put password in Azure Key Vault and pull the `pwd` configuration out of the connection string. Refer to the following samples and [Store credentials in Azure Key Vault](store-credentials-in-key-vault.md) article with more details. | Yes |
74
+
| version | The version that you specify. The value is `2.0`. | Yes |
75
+
| host | Specifies the host name - and optionally port - on which database is running. | Yes |
76
+
| port | The TCP port of the database server. | No |
77
+
| database | The database to connect to. | Yes |
78
+
| username | The username to connect with. Not required if using IntegratedSecurity. |Yes |
79
+
| password| The password to connect with. Not required if using IntegratedSecurity. | Yes |
80
+
| sslMode | Controls whether SSL is used, depending on server support. <br/>- **Disable**: SSL is disabled. If the server requires SSL, the connection will fail. <br/>- **Allow**: Prefer non-SSL connections if the server allows them, but allow SSL connections. <br/>- **Prefer**: Prefer SSL connections if the server allows them, but allow connections without SSL. <br/>- **Require**: Fail the connection if the server doesn't support SSL. <br/>- **Verify-ca**: Fail the connection if the server doesn't support SSL. Also verifies server certificate. <br/>- **Verify-full**: Fail the connection if the server doesn't support SSL. Also verifies server certificate with host's name. <br/> Options: Disable (0) / Allow (1) / Prefer (2) / Require (3) **(Default)** / Verify-ca (4) / Verify-full (5) | Yes |
81
+
| authenticationType | Authentication type for connecting to the database. Only supports **Basic**. | Yes |
75
82
| connectVia | The [Integration Runtime](concepts-integration-runtime.md) to be used to connect to the data store. Learn more from [Prerequisites](#prerequisites) section. If not specified, it uses the default Azure Integration Runtime. |No |
83
+
|***Additional connection properties:***|||
84
+
| connectionTimeout | The time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error. The default value is 15. | No |
85
+
| commandTimeout | The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an error. Set to zero for infinity. The default value is 30. | No |
76
86
77
87
**Example:**
78
88
@@ -81,8 +91,18 @@ The following properties are supported for Greenplum linked service:
@@ -91,24 +111,53 @@ The following properties are supported for Greenplum linked service:
91
111
}
92
112
}
93
113
```
94
-
95
114
**Example: store password in Azure Key Vault**
115
+
```json
116
+
{
117
+
"name": "GreenplumLinkedService",
118
+
"properties": {
119
+
"type": "Greenplum",
120
+
"typeProperties": {
121
+
"host": "<host>",
122
+
"port": 5432,
123
+
"database": "<database>",
124
+
"username": "<username>",
125
+
"password": {
126
+
"type": "AzureKeyVaultSecret",
127
+
"store": {
128
+
"referenceName": "<Azure Key Vault linked service name>",
129
+
"type": "LinkedServiceReference"
130
+
},
131
+
"secretName": "<secretName>"
132
+
},
133
+
"sslMode": <sslmode>,
134
+
"authenticationType": "Basic"
135
+
},
136
+
"connectVia": {
137
+
"referenceName": "<name of Integration Runtime>",
138
+
"type": "IntegrationRuntimeReference"
139
+
}
140
+
}
141
+
}
142
+
```
143
+
144
+
If you use version 1.0, the following properties are supported:
145
+
146
+
| Property | Description | Required |
147
+
|:--- |:--- |:--- |
148
+
| type | The type property must be set to: **Greenplum**| Yes |
149
+
| connectionString | An ODBC connection string to connect to Greenplum. <br/>You can also put password in Azure Key Vault and pull the `pwd` configuration out of the connection string. Refer to the following samples and [Store credentials in Azure Key Vault](store-credentials-in-key-vault.md) article with more details. | Yes |
150
+
| connectVia | The [Integration Runtime](concepts-integration-runtime.md) to be used to connect to the data store. Learn more from [Prerequisites](#prerequisites) section. If not specified, it uses the default Azure Integration Runtime. |No |
@@ -193,9 +242,73 @@ To copy data from Greenplum, set the source type in the copy activity to **Green
193
242
]
194
243
```
195
244
245
+
## Data type mapping for Greenplum
246
+
247
+
When copying data from Greenplum, the following mappings are used from Greenplum 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.
248
+
249
+
|Greenplum data type | Interim service data type (for version 2.0) | Interim service data type (for version 1.0) |
|`Timestamp with time zone`|`DateTimeOffset`|`String`|
269
+
|`Date`|`Date`|`DateTime`|
270
+
|`Time`|`TimeSpan`|`TimeSpan`|
271
+
|`Time with time zone`|`DateTimeOffset`|`String`|
272
+
|`Interval`|`TimeSpan`|`String`|
273
+
|`Boolean`|`Boolean`|`Boolean`|
274
+
|`Point`|`String`|`String`|
275
+
|`Line`|`String`|`String`|
276
+
|`Iseg`|`String`|`String`|
277
+
|`Box`|`String`|`String`|
278
+
|`Path`|`String`|`String`|
279
+
|`Polygon`|`String`|`String`|
280
+
|`Circle`|`String`|`String`|
281
+
|`Cidr`|`String`|`String`|
282
+
|`Inet`|`String`|`String`|
283
+
|`Macaddr`|`String`|`String`|
284
+
|`Macaddr8`|`String`|`String`|
285
+
|`Tsvector`|`String`|`String`|
286
+
|`Tsquery`|`String`|`String`|
287
+
|`UUID`|`Guid`|`Guid`|
288
+
|`Json`|`String`|`String`|
289
+
|`Jsonb`|`String`|`String`|
290
+
|`Array`|`String`|`String`|
291
+
|`Bit`|`Byte[]`|`Byte[]`|
292
+
|`Bit varying`|`Byte[]`|`Byte[]`|
293
+
|`XML`|`String`|`String`|
294
+
|`IntArray`|`String`|`String`|
295
+
|`TextArray`|`String`|`String`|
296
+
|`NumericArray`|`String`|`String`|
297
+
|`DateArray`|`String`|`String`|
298
+
|`Range`|`String`|`String`|
299
+
|`Bpchar`|`String`|`String`|
300
+
196
301
## Lookup activity properties
197
302
198
303
To learn details about the properties, check [Lookup activity](control-flow-lookup-activity.md).
199
304
305
+
## Upgrade the Greenplum connector
306
+
307
+
Here are steps that help you upgrade your Greenplum connector:
308
+
309
+
1. In **Edit linked service page**, select **2.0 (Preview)** under **Version** and configure the linked service by referring to [Linked service properties](#linked-service-properties).
310
+
311
+
1. The data type mapping for the latest Greenplum linked service is different from that for version 1.0. To learn the latest data type mapping, see [Data type mapping for Greenplum](#data-type-mapping-for-greenplum).
312
+
200
313
## Related content
201
314
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