Delta Tables copying

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ06-27-2023 09:43 AM
Hello,
Iโm trying to copy a table with all itโs versions to unity catalog, I know I can use deep cloning but I want the table with the full history, is that possible?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ06-27-2023 11:59 AM
I think if you copy the underlying files of the source table to a new location along with the _delta_log/ you effectively have the full history. Given you have external location setup for unity catalog you can then create an table on this location.
And If you are using DBX runtime 13.0+, you can use the CREATE TABLE LIKE to create a copy table on the new location.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ06-27-2023 05:26 PM
To copy history, you would have to copy files along with the delta log folder and then create a delta table on that location

