<?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 Re: Using dbutils.fs.ls gives overlap error. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/using-dbutils-fs-ls-gives-overlap-error/m-p/5902#M2169</link>
    <description>&lt;P&gt;@jin park​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like there is an overlap in the path when you use dbutils.fs.ls() to list the contents of &lt;/P&gt;&lt;P&gt;abfss://~~@~~.dfs.core.windows.net/dejeong, which is the managed location. This may be due to the fact that the managed location is also a path, and this is causing a conflict. To navigate to the parent path, you can use  dbutils.fs.ls("abfss://~~@~~.dfs.core.windows.net/dejeong/"), with a trailing slash at the end of the path. This should list the contents of the parent directory without causing any conflicts.&lt;/P&gt;&lt;P&gt;Alternatively, you can try using dbutils.fs.ls("abfss://~~@~~.dfs.core.windows.net/dejeong/__internal")&lt;/P&gt;&lt;P&gt;, which is the internal directory where managed tables are stored, instead of __unitystorage.&lt;/P&gt;&lt;P&gt;It's also worth noting that the behavior of dbutils.fs.ls() and list in SQL may differ, as they are different methods and may handle paths differently.&lt;/P&gt;</description>
    <pubDate>Sun, 16 Apr 2023 01:08:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-16T01:08:38Z</dc:date>
    <item>
      <title>Using dbutils.fs.ls gives overlap error.</title>
      <link>https://community.databricks.com/t5/data-engineering/using-dbutils-fs-ls-gives-overlap-error/m-p/5901#M2168</link>
      <description>&lt;P&gt;I created a schema with that route as a managed location.&lt;/P&gt;&lt;P&gt;(abfss://~~@~~.dfs.core.windows.net/dejeong)&lt;/P&gt;&lt;P&gt;And an external table named 'first_table' was created in the corresponding path.&lt;/P&gt;&lt;P&gt;(abfss://~~@~~.dfs.core.windows.net/dejeong/first_table)&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;The results of the dbutils.fs.ls and sql list clauses are different for the three paths.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%python&lt;/P&gt;&lt;P&gt;dbutils.fs.ls("abfss://~~@~~.dfs.core.windows.net/dejeong") --&amp;gt; managed location overlaps error&lt;/P&gt;&lt;P&gt;dbutils.fs.ls("abfss://~~@~~.dfs.core.windows.net/dejeong/__unitystorage") --&amp;gt; managed location overlaps error&lt;/P&gt;&lt;P&gt;dbutils.fs.ls("abfss://~~@~~.dfs.core.windows.net/dejeong/first_table") --&amp;gt; out[3]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%sql&lt;/P&gt;&lt;P&gt;list"abfss://~~@~~.dfs.core.windows.net/dejeong" --&amp;gt; out[2]&lt;/P&gt;&lt;P&gt;list "abfss://~~@~~.dfs.core.windows.net/dejeong/__unitystorage" --&amp;gt; managed location overlaps error&lt;/P&gt;&lt;P&gt;list "abfss://~~@~~.dfs.core.windows.net/dejeong/first_table" --&amp;gt;out[2]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug in dbutils.fs.ls?&lt;/P&gt;&lt;P&gt;Or did I do something wrong?&lt;/P&gt;&lt;P&gt;I want to navigate parent path with dbutils.fs.ls syntax.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 17:45:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-dbutils-fs-ls-gives-overlap-error/m-p/5901#M2168</guid>
      <dc:creator>data_eng_hard</dc:creator>
      <dc:date>2023-04-13T17:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using dbutils.fs.ls gives overlap error.</title>
      <link>https://community.databricks.com/t5/data-engineering/using-dbutils-fs-ls-gives-overlap-error/m-p/5902#M2169</link>
      <description>&lt;P&gt;@jin park​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like there is an overlap in the path when you use dbutils.fs.ls() to list the contents of &lt;/P&gt;&lt;P&gt;abfss://~~@~~.dfs.core.windows.net/dejeong, which is the managed location. This may be due to the fact that the managed location is also a path, and this is causing a conflict. To navigate to the parent path, you can use  dbutils.fs.ls("abfss://~~@~~.dfs.core.windows.net/dejeong/"), with a trailing slash at the end of the path. This should list the contents of the parent directory without causing any conflicts.&lt;/P&gt;&lt;P&gt;Alternatively, you can try using dbutils.fs.ls("abfss://~~@~~.dfs.core.windows.net/dejeong/__internal")&lt;/P&gt;&lt;P&gt;, which is the internal directory where managed tables are stored, instead of __unitystorage.&lt;/P&gt;&lt;P&gt;It's also worth noting that the behavior of dbutils.fs.ls() and list in SQL may differ, as they are different methods and may handle paths differently.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 01:08:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-dbutils-fs-ls-gives-overlap-error/m-p/5902#M2169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-16T01:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using dbutils.fs.ls gives overlap error.</title>
      <link>https://community.databricks.com/t5/data-engineering/using-dbutils-fs-ls-gives-overlap-error/m-p/5903#M2170</link>
      <description>&lt;P&gt;Hi @jin park​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope everything is going great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 05:22:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-dbutils-fs-ls-gives-overlap-error/m-p/5903#M2170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-16T05:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using dbutils.fs.ls gives overlap error.</title>
      <link>https://community.databricks.com/t5/data-engineering/using-dbutils-fs-ls-gives-overlap-error/m-p/5904#M2171</link>
      <description>&lt;P&gt;dbutils.fs.ls("abfss://~~@~~.dfs.core.windows.net/dejeong/ ")&lt;/P&gt;&lt;P&gt;This route still gives me an error&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2023 06:50:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/using-dbutils-fs-ls-gives-overlap-error/m-p/5904#M2171</guid>
      <dc:creator>data_eng_hard</dc:creator>
      <dc:date>2023-04-16T06:50:00Z</dc:date>
    </item>
  </channel>
</rss>

