<?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: Unity Catalog with Structured Streaming in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unity-catalog-with-structured-streaming/m-p/101912#M40883</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/100425"&gt;@elkaganeva&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;When you register an S3 bucket as an external location in Unity Catalog, you can directly access Delta tables stored in that bucket using the spark.readStream and spark.writeStream methods. The metadata for the Delta tables is managed through Unity Catalog, not stored in the bucket itself. This means that Unity Catalog handles the metadata management, ensuring that access control and other governance policies are enforced.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Here is the code snippet you provided, which will work as expected:&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;spark.readStream&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.format("delta")&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.load("s3://my-bucket/delta-table-1/")&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.writeStream&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.format("delta")&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.option("checkpointLocation", aggregatedEvidencesCheckpoint)&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.trigger(Trigger.AvailableNow())&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.start("s3://my-bucket/delta-table-2/")&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 13:02:27 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2024-12-12T13:02:27Z</dc:date>
    <item>
      <title>Unity Catalog with Structured Streaming</title>
      <link>https://community.databricks.com/t5/data-engineering/unity-catalog-with-structured-streaming/m-p/101881#M40865</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Our project uses spark structured streaming scala notebooks to process files stored in an S3 bucket, with the jobs running in Single User access mode.&lt;/P&gt;&lt;P&gt;For one of the jobs, we need to use a file arrival trigger. To enable this, the S3 location must be registered as an external location in the Unity Catalog.&lt;/P&gt;&lt;P&gt;My question is: if we register the entire S3 bucket (instead of only the specific location needed), can we directly access bucket delta tables like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;spark.readStream
  .format("delta")
  ...
  .load("s3://my-bucket/delta-table-1/")
  .writeStream
  .format("delta")
  ...
  .option("checkpointLocation", aggregatedEvidencesCheckpoint)
  .trigger(Trigger.AvailableNow())
  .start("s3://my-bucket/delta-table-2/")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When directly accessing the bucket ("s3://my-bucket/..."), is the metadata for the Delta tables stored in the bucket itself, or is it managed through the Unity Catalog?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 09:33:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unity-catalog-with-structured-streaming/m-p/101881#M40865</guid>
      <dc:creator>elkaganeva</dc:creator>
      <dc:date>2024-12-12T09:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unity Catalog with Structured Streaming</title>
      <link>https://community.databricks.com/t5/data-engineering/unity-catalog-with-structured-streaming/m-p/101912#M40883</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/100425"&gt;@elkaganeva&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;When you register an S3 bucket as an external location in Unity Catalog, you can directly access Delta tables stored in that bucket using the spark.readStream and spark.writeStream methods. The metadata for the Delta tables is managed through Unity Catalog, not stored in the bucket itself. This means that Unity Catalog handles the metadata management, ensuring that access control and other governance policies are enforced.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Here is the code snippet you provided, which will work as expected:&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;spark.readStream&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.format("delta")&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.load("s3://my-bucket/delta-table-1/")&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.writeStream&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.format("delta")&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.option("checkpointLocation", aggregatedEvidencesCheckpoint)&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.trigger(Trigger.AvailableNow())&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;.start("s3://my-bucket/delta-table-2/")&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 13:02:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unity-catalog-with-structured-streaming/m-p/101912#M40883</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-12T13:02:27Z</dc:date>
    </item>
  </channel>
</rss>

