<?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: Read file with Delta Live Tables from external location (Unity Catalog) in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/read-file-with-delta-live-tables-from-external-location-unity/m-p/54057#M6181</link>
    <description>&lt;P&gt;I misspelled the folder name; I got it working now&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; The error message could have been more informative&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2023 07:57:47 GMT</pubDate>
    <dc:creator>rpl</dc:creator>
    <dc:date>2023-11-28T07:57:47Z</dc:date>
    <item>
      <title>Read file with Delta Live Tables from external location (Unity Catalog)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/read-file-with-delta-live-tables-from-external-location-unity/m-p/54054#M6180</link>
      <description>&lt;P&gt;As far as I understand, Delta Live Tables should now support &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/delta-live-tables/unity-catalog#ingest-data-from-auto-loader" target="_self"&gt;reading data from an external location&lt;/A&gt;, but I can’t get it to work. I’ve added an ADLS container to Unity Catalog as an external location. There’s a folder in the container containing an &lt;A href="https://docs.databricks.com/en/external-data/json.html#single-line-mode" target="_self"&gt;example file with one json object per line&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Reading the file with an all-purpose cluster or a job cluster works with this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;df = spark.read.format("json").load("abfss://&amp;lt;container_name&amp;gt;@&amp;lt;storage_name&amp;gt;.dfs.core.windows.net/test_json/")
df.printSchema&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I understand, this is the counterpart that should work in a DLT pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import dlt
@dlt.table
def test_data():
  return (
     spark.readStream.format("cloudFiles")
     .option("cloudFiles.format", "json")
     .load(f"abfss://&amp;lt;container_name&amp;gt;@&amp;lt;storage_name&amp;gt;.dfs.core.windows.net/test_json/")
 )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I get the error&amp;nbsp;&lt;EM&gt;Failed to resolve flow: 'test_data'.&lt;/EM&gt;&amp;nbsp;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 07:47:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/read-file-with-delta-live-tables-from-external-location-unity/m-p/54054#M6180</guid>
      <dc:creator>rpl</dc:creator>
      <dc:date>2023-11-28T07:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read file with Delta Live Tables from external location (Unity Catalog)</title>
      <link>https://community.databricks.com/t5/get-started-discussions/read-file-with-delta-live-tables-from-external-location-unity/m-p/54057#M6181</link>
      <description>&lt;P&gt;I misspelled the folder name; I got it working now&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; The error message could have been more informative&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 07:57:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/read-file-with-delta-live-tables-from-external-location-unity/m-p/54057#M6181</guid>
      <dc:creator>rpl</dc:creator>
      <dc:date>2023-11-28T07:57:47Z</dc:date>
    </item>
  </channel>
</rss>

