Skip to content

Commit 0c363b3

Browse files
committed
eximsetting json
1 parent 0c85d6b commit 0c363b3

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

articles/data-factory/connector-snowflake.md

Lines changed: 27 additions & 10 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 |
@@ -252,7 +252,10 @@ If your sink data store and format meet the criteria described in this section,
252252
}
253253
},
254254
"sink": {
255-
"type": "<sink type>"
255+
"type": "<sink type>",
256+
"importSettings": {
257+
"type": "SnowflakeExportCopyCommand"
258+
}
256259
}
257260
}
258261
}
@@ -290,10 +293,16 @@ To use this feature, create an [Azure Blob storage linked service](connector-azu
290293
"typeProperties": {
291294
"source": {
292295
"type": "SnowflakeSource",
296+
"exportSettings": {
297+
"type": "SnowflakeExportCopyCommand"
298+
},
293299
"sqlReaderQuery": "SELECT * FROM MyTable"
294300
},
295301
"sink": {
296-
"type": "<sink type>"
302+
"type": "<sink type>",
303+
"importSettings": {
304+
"type": "SnowflakeExportCopyCommand"
305+
}
297306
},
298307
"enableStaging": true,
299308
"stagingSettings": {
@@ -320,7 +329,7 @@ To copy data to Snowflake, the following properties are supported in the Copy ac
320329
| :---------------- | :----------------------------------------------------------- | :-------------------------------------------- |
321330
| type | The type property of the Copy activity sink, set to **SnowflakeSink**. | Yes |
322331
| 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 |
332+
| 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 |
324333
| ***Under `importSettings`:*** | | |
325334
| type | The type of import command, set to **SnowflakeImportCopyCommand**. | Yes |
326335
| 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 |
@@ -382,18 +391,21 @@ If your source data store and format meet the criteria described in this section
382391
],
383392
"typeProperties": {
384393
"source": {
385-
"type": "<source type>"
394+
"type": "<source type>",
395+
"exportSettings": {
396+
"type": "SnowflakeImportCopyCommand"
397+
}
386398
},
387399
"sink": {
388400
"type": "SnowflakeSink",
389401
"importSettings": {
390402
"type": "SnowflakeImportCopyCommand",
391403
"copyOptions": {
392404
"FORCE": "TRUE",
393-
"ON_ERROR": "SKIP_FILE",
405+
"ON_ERROR": "SKIP_FILE"
394406
},
395407
"fileFormatOptions": {
396-
"DATE_FORMAT": "YYYY-MM-DD",
408+
"DATE_FORMAT": "YYYY-MM-DD"
397409
}
398410
}
399411
}
@@ -432,10 +444,15 @@ To use this feature, create an [Azure Blob storage linked service](connector-azu
432444
],
433445
"typeProperties": {
434446
"source": {
435-
"type": "<source type>"
447+
"type": "<source type>",
448+
"exportSettings": {
449+
"type": "SnowflakeImportCopyCommand"
450+
}
436451
},
437452
"sink": {
438-
"type": "SnowflakeSink"
453+
"type": "SnowflakeSink",
454+
"importSettings": {
455+
"type": "SnowflakeImportCopyCommand"
439456
},
440457
"enableStaging": true,
441458
"stagingSettings": {

0 commit comments

Comments
 (0)