How can I convert a parquet into delta table?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2021 10:26 PM
I am looking to migrate my legacy warehouse data. How can I convert a parquet into delta table?
Labels:
- Labels:
-
Delta table
-
Parquet
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2021 11:12 PM
Hi mp,
You have two options to convert a parquet into a delta table through SQL
CONVERT TO DELTA parquet.`/data-pipeline/`
CREATE TABLE events USING DELTA LOCATION '/data-pipeline/'
or
CREATE TABLE events USING PARQUET OPTIONS (path '/data-pipeline/')
CONVERT TO DELTA events
If you want to learn about the differences between the two, there is actually a document on Databricks that explains it in detail
https://docs.databricks.com/delta/porting.html
Thank you
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2022 09:19 PM
how about the scenario where your table is external and partitioned with files in s3?

