Clarification on ACID Compliance of "Truncate Table" Action in Snowflake Sink for ADF Data

Kudras, Stefan 20 Reputation points
2024-11-19T09:47:38.3066667+00:00

Best regards, [Your Name]Dear Microsoft Support Team,

I am working with Azure Data Factory (ADF) Data Flows and utilizing the Snowflake sink for data loading. In the Settings tab, there is an option to select "Truncate table" under the Table action dropdown. I have concerns about whether this action adheres to ACID compliance principles, particularly regarding the gap between truncating the table and inserting new data.

Based on my understanding, the "Truncate table" action involves two discrete steps:

  1. Truncating the table, which removes all existing rows.
  2. Inserting new data into the table from the data flow.

My specific question is:

  • Is there a moment between these two steps where the target table is completely empty and queries on the table would return no data?
  • If so, can you confirm whether this process is ACID-compliant?

Additionally, I would like to know if there are any recommendations or best practices for ensuring data consistency and availability when using this action.

Thank you for your assistance. I look forward to your clarification on this matter.

Best regards,
Stefan Kudras

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,886 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.