Skip to content

Commit e899c0a

Browse files
Merge pull request #287215 from jonburchel/patch-47
Update connector-snowflake.md
2 parents e9efaef + 553de61 commit e899c0a

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

articles/data-factory/connector-snowflake.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ author: jianleishen
77
ms.subservice: data-movement
88
ms.topic: conceptual
99
ms.custom: synapse
10-
ms.date: 07/25/2024
10+
ms.date: 09/23/2024
11+
ai-usage: ai-assisted
1112
---
1213

1314
# Copy and transform data in Snowflake using Azure Data Factory or Azure Synapse Analytics
@@ -403,6 +404,27 @@ To use this feature, create an [Azure Blob storage linked service](connector-azu
403404
]
404405
```
405406

407+
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.
408+
409+
**Example Configuration**
410+
411+
```json
412+
{
413+
"type": "Copy",
414+
"source": {
415+
"type": "SnowflakeSource",
416+
"query": "SELECT * FROM my_table"
417+
},
418+
"sink": {
419+
"type": "AzureBlobStorage",
420+
"copyBehavior": "MergeFiles"
421+
}
422+
}
423+
```
424+
425+
>[!NOTE]
426+
>Failing to set the Sink Copy Behavior to **Merge Files** may result in only the last partitioned file being copied.
427+
406428
### Snowflake as sink
407429

408430
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)