Skip to content

Commit 278c4a0

Browse files
authored
Update connector-snowflake.md
1 parent bb8ad2f commit 278c4a0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

articles/data-factory/connector-snowflake.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,27 @@ To use this feature, create an [Azure Blob storage linked service](connector-azu
403403
]
404404
```
405405

406+
When performing a staged copy from Snowflake, it is crucial to set the Sink Copy Behavior to **Merge Files**. This setting ensures that all partitioned files are correctly handled and merged, preventing the issue where only the last partitioned file is copied.
407+
408+
**Example Configuration**
409+
410+
```json
411+
{
412+
"type": "Copy",
413+
"source": {
414+
"type": "SnowflakeSource",
415+
"query": "SELECT * FROM my_table"
416+
},
417+
"sink": {
418+
"type": "AzureBlobStorage",
419+
"copyBehavior": "MergeFiles"
420+
}
421+
}
422+
```
423+
424+
>[!NOTE]
425+
>Failing to set the Sink Copy Behavior to **Merge Files** may result in only the last partitioned file being copied.
426+
406427
### Snowflake as sink
407428

408429
Snowflake connector utilizes Snowflake’s [COPY into [table]](https://docs.snowflake.com/en/sql-reference/sql/copy-into-table.html) command to achieve the best performance. It supports writing data to Snowflake on Azure.

0 commit comments

Comments
 (0)