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.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!