cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

What is the best way to convert a very large parquet table to delta ? possibly without downtime!

User16783853501
New Contributor II
New Contributor II

What is the best way to convert a very large parquet table to delta ? possibly without downtime! 

2 REPLIES 2

sajith_appukutt
Honored Contributor II

You could run in-place convert with

CONVERT TO DELTA parquet.`/data-pipeline/`
CREATE TABLE events USING DELTA LOCATION '/data-pipeline/'

This command lists all objects in the path, infers the data schema by reading the footers of all parquet files and creates the necessary metadata / statistics. This would be the least disruptive approach as you are not copying data over.

If you have multiple external tables share the same underlying parquet directory, you'd need to run convert for all of them

brickster_2018
Esteemed Contributor
Esteemed Contributor

I vouch for Sajith's answer. The main advantage with "CONVERT TO DELTA" is that operations are metadata centric which means we are not reading the full data for the conversion. For any other file format conversion, it's necessary to read the data completely and write it to the target format.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group