Skip to content

Commit 9791f9a

Browse files
Merge pull request #209093 from jess-hu-340/0824-eximset_req_json
Modify "Required=Yes" for exportSettings and importSettings and add json
2 parents de7cd4d + 46e4a71 commit 9791f9a

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

articles/data-factory/connector-snowflake.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: data-factory
88
ms.subservice: data-movement
99
ms.topic: conceptual
1010
ms.custom: synapse
11-
ms.date: 07/28/2022
11+
ms.date: 08/24/2022
1212
---
1313

1414
# Copy and transform data in Snowflake using Azure Data Factory or Azure Synapse Analytics
@@ -185,7 +185,7 @@ To copy data from Snowflake, the following properties are supported in the Copy
185185
| :--------------------------- | :----------------------------------------------------------- | :------- |
186186
| type | The type property of the Copy activity source must be set to **SnowflakeSource**. | Yes |
187187
| query | Specifies the SQL query to read data from Snowflake. If the names of the schema, table and columns contain lower case, quote the object identifier in query e.g. `select * from "schema"."myTable"`.<br>Executing stored procedure is not supported. | No |
188-
| exportSettings | Advanced settings used to retrieve data from Snowflake. You can configure the ones supported by the COPY into command that the service will pass through when you invoke the statement. | No |
188+
| exportSettings | Advanced settings used to retrieve data from Snowflake. You can configure the ones supported by the COPY into command that the service will pass through when you invoke the statement. | Yes |
189189
| ***Under `exportSettings`:*** | | |
190190
| type | The type of export command, set to **SnowflakeExportCopyCommand**. | Yes |
191191
| additionalCopyOptions | Additional copy options, provided as a dictionary of key-value pairs. Examples: MAX_FILE_SIZE, OVERWRITE. For more information, see [Snowflake Copy Options](https://docs.snowflake.com/en/sql-reference/sql/copy-into-location.html#copy-options-copyoptions). | No |
@@ -289,8 +289,11 @@ To use this feature, create an [Azure Blob storage linked service](connector-azu
289289
],
290290
"typeProperties": {
291291
"source": {
292-
"type": "SnowflakeSource",
293-
"sqlReaderQuery": "SELECT * FROM MyTable"
292+
"type": "SnowflakeSource",
293+
"sqlReaderQuery": "SELECT * FROM MyTable",
294+
"exportSettings": {
295+
"type": "SnowflakeExportCopyCommand"
296+
}
294297
},
295298
"sink": {
296299
"type": "<sink type>"
@@ -320,7 +323,7 @@ To copy data to Snowflake, the following properties are supported in the Copy ac
320323
| :---------------- | :----------------------------------------------------------- | :-------------------------------------------- |
321324
| type | The type property of the Copy activity sink, set to **SnowflakeSink**. | Yes |
322325
| preCopyScript | Specify a SQL query for the Copy activity to run before writing data into Snowflake in each run. Use this property to clean up the preloaded data. | No |
323-
| importSettings | Advanced settings used to write data into Snowflake. You can configure the ones supported by the COPY into command that the service will pass through when you invoke the statement. | No |
326+
| importSettings | Advanced settings used to write data into Snowflake. You can configure the ones supported by the COPY into command that the service will pass through when you invoke the statement. | Yes |
324327
| ***Under `importSettings`:*** | | |
325328
| type | The type of import command, set to **SnowflakeImportCopyCommand**. | Yes |
326329
| additionalCopyOptions | Additional copy options, provided as a dictionary of key-value pairs. Examples: ON_ERROR, FORCE, LOAD_UNCERTAIN_FILES. For more information, see [Snowflake Copy Options](https://docs.snowflake.com/en/sql-reference/sql/copy-into-table.html#copy-options-copyoptions). | No |
@@ -390,10 +393,10 @@ If your source data store and format meet the criteria described in this section
390393
"type": "SnowflakeImportCopyCommand",
391394
"copyOptions": {
392395
"FORCE": "TRUE",
393-
"ON_ERROR": "SKIP_FILE",
396+
"ON_ERROR": "SKIP_FILE"
394397
},
395398
"fileFormatOptions": {
396-
"DATE_FORMAT": "YYYY-MM-DD",
399+
"DATE_FORMAT": "YYYY-MM-DD"
397400
}
398401
}
399402
}
@@ -435,7 +438,10 @@ To use this feature, create an [Azure Blob storage linked service](connector-azu
435438
"type": "<source type>"
436439
},
437440
"sink": {
438-
"type": "SnowflakeSink"
441+
"type": "SnowflakeSink",
442+
"importSettings": {
443+
"type": "SnowflakeImportCopyCommand"
444+
}
439445
},
440446
"enableStaging": true,
441447
"stagingSettings": {

0 commit comments

Comments
 (0)