<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Any way to access unity catalog location through python/dbutils in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/any-way-to-access-unity-catalog-location-through-python-dbutils/m-p/38980#M26831</link>
    <description>&lt;P&gt;I have a table created at unity catalog that was dropped, the files are not deleted due to the 30 day soft delete. Is there anyway to copy the files to a different location? When I try to use dbutils.fs.cp I get location overlap error with unity catalog managed location.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 05:49:29 GMT</pubDate>
    <dc:creator>ashish577</dc:creator>
    <dc:date>2023-08-03T05:49:29Z</dc:date>
    <item>
      <title>Any way to access unity catalog location through python/dbutils</title>
      <link>https://community.databricks.com/t5/data-engineering/any-way-to-access-unity-catalog-location-through-python-dbutils/m-p/38980#M26831</link>
      <description>&lt;P&gt;I have a table created at unity catalog that was dropped, the files are not deleted due to the 30 day soft delete. Is there anyway to copy the files to a different location? When I try to use dbutils.fs.cp I get location overlap error with unity catalog managed location.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 05:49:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/any-way-to-access-unity-catalog-location-through-python-dbutils/m-p/38980#M26831</guid>
      <dc:creator>ashish577</dc:creator>
      <dc:date>2023-08-03T05:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to access unity catalog location through python/dbutils</title>
      <link>https://community.databricks.com/t5/data-engineering/any-way-to-access-unity-catalog-location-through-python-dbutils/m-p/39048#M26861</link>
      <description>&lt;P&gt;I think you can not do that, as this are already into soft delete.&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the actual error you got?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 16:57:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/any-way-to-access-unity-catalog-location-through-python-dbutils/m-p/39048#M26861</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2023-08-03T16:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to access unity catalog location through python/dbutils</title>
      <link>https://community.databricks.com/t5/data-engineering/any-way-to-access-unity-catalog-location-through-python-dbutils/m-p/39051#M26863</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/31353"&gt;@ashish577&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can restore the file using your cloud service provider. Then you can create a table on the top of the restored files.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 18:06:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/any-way-to-access-unity-catalog-location-through-python-dbutils/m-p/39051#M26863</guid>
      <dc:creator>Tharun-Kumar</dc:creator>
      <dc:date>2023-08-03T18:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Any way to access unity catalog location through python/dbutils</title>
      <link>https://community.databricks.com/t5/data-engineering/any-way-to-access-unity-catalog-location-through-python-dbutils/m-p/39381#M26947</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the&lt;SPAN&gt;&amp;nbsp;dbutils.fs.mv&lt;SPAN&gt;&amp;nbsp;command to move the files from the deleted table to a new location. Here's an example of how to do it:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;python&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;#&amp;nbsp;Define&amp;nbsp;the&amp;nbsp;paths&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;source_path&amp;nbsp;=&amp;nbsp;&lt;SPAN class=""&gt;"dbfs:/mnt/&amp;lt;unity-catalog-location&amp;gt;/&amp;lt;database-name&lt;SPAN class=""&gt;&amp;gt;/&amp;lt;table-name&amp;gt;"&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;target_path&amp;nbsp;=&amp;nbsp;&lt;SPAN class=""&gt;"dbfs:/mnt/&amp;lt;new-location&amp;gt;/&amp;lt;path&amp;gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;#&amp;nbsp;Move&amp;nbsp;the&amp;nbsp;files&amp;nbsp;using&amp;nbsp;dbutils.fs.mv&amp;nbsp;command&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;dbutils.fs.mv(source_path,&amp;nbsp;target_path&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Replace&lt;SPAN&gt;&amp;nbsp;&amp;lt;unity-catalog-location&amp;gt;&lt;SPAN&gt;&amp;nbsp;with the name of the Unity Catalog location where the table was created,&lt;SPAN&gt;&amp;nbsp;&amp;lt;database-name&amp;gt;&lt;SPAN&gt;&amp;nbsp;with the name of the database containing the table,&lt;SPAN&gt;&amp;nbsp;&amp;lt;table-name&amp;gt;&lt;SPAN&gt;&amp;nbsp;with the name of the dropped table,&lt;SPAN&gt;&amp;nbsp;&amp;lt;new-location&amp;gt;&lt;SPAN&gt;&amp;nbsp;with the new location where you want to move the files, and&lt;SPAN&gt;&amp;nbsp;&amp;lt;path&amp;gt;&lt;SPAN&gt;&amp;nbsp;with any additional path elements needed for the target location.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;By using&lt;SPAN&gt;&amp;nbsp;dbutils.fs.mv, you can move the files from the deleted table to a new location without having to copy the files. Please note that moving files from a managed location of Unity Catalog is not recommended and it is against the best practice of using a Catalog. You should only use the Catalog interfaces for performing operations on managed tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Aug 2023 15:56:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/any-way-to-access-unity-catalog-location-through-python-dbutils/m-p/39381#M26947</guid>
      <dc:creator>youssefmrini</dc:creator>
      <dc:date>2023-08-08T15:56:26Z</dc:date>
    </item>
  </channel>
</rss>

