cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Best ways to copy the parquet files in the staging directory to the Delta table

User16869510359
Esteemed Contributor

I have some parquet data in a temporary directory. Can I copy them into the delta table directly, what are the best options.

1 ACCEPTED SOLUTION

Accepted Solutions

User16869510359
Esteemed Contributor

The easiest solution is to use the COPY INTO command. The COPY INTO command ensures idempotency, so even if the operation fails there are no data inconsistencies. COPY INTO command utilizes the resources on the Spark cluster hence completes faster. 

https://docs.databricks.com/spark/latest/spark-sql/language-manual/delta-copy-into.html

View solution in original post

1 REPLY 1

User16869510359
Esteemed Contributor

The easiest solution is to use the COPY INTO command. The COPY INTO command ensures idempotency, so even if the operation fails there are no data inconsistencies. COPY INTO command utilizes the resources on the Spark cluster hence completes faster. 

https://docs.databricks.com/spark/latest/spark-sql/language-manual/delta-copy-into.html

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.