<?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: Use DLT from another pipeline in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/use-dlt-from-another-pipeline/m-p/65308#M32778</link>
    <description>&lt;P&gt;Hello, thanks for the answers &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102853"&gt;@YuliyanBogdanov&lt;/a&gt;, &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102950"&gt;@standup1&lt;/a&gt;.&lt;BR /&gt;So the solution is to use &lt;STRONG&gt;catalog&lt;/STRONG&gt;.&lt;STRONG&gt;schema&lt;/STRONG&gt;.&lt;STRONG&gt;table&lt;/STRONG&gt;, and not &lt;STRONG&gt;LIVE&lt;/STRONG&gt;.&lt;STRONG&gt;table&lt;/STRONG&gt;, that's the key, you were right standup!&lt;/P&gt;&lt;P&gt;But, you won't have the visibility of the tables on &lt;EM&gt;Bronze&lt;/EM&gt; Pipeline, if you are on &lt;EM&gt;Silver&lt;/EM&gt; one.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2024 13:07:48 GMT</pubDate>
    <dc:creator>AxelBrsn</dc:creator>
    <dc:date>2024-04-02T13:07:48Z</dc:date>
    <item>
      <title>Use DLT from another pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/use-dlt-from-another-pipeline/m-p/64820#M32668</link>
      <description>&lt;P&gt;Hello, I have a question.&lt;/P&gt;&lt;P&gt;Context :&lt;/P&gt;&lt;P&gt;I have a Unity Catalog organized with three schemas (bronze, silver and gold). Logically, I would like to create tables in each schemas.&lt;/P&gt;&lt;P&gt;I tried to organize my pipelines on the layers, which mean that I would like to have three pipelines :&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Bronze, with destination the bronze schema&lt;/LI&gt;&lt;LI&gt;Silver, with destination the silver schema&lt;/LI&gt;&lt;LI&gt;Gold, with destination the gold schema&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;When I try to start the Silver pipeline, I have an error that the dataset of the bronze table is not defined in the pipeline.&lt;/P&gt;&lt;P&gt;The bronze pipeline worked pretty good, and DLT exists in the bronze schema.&lt;/P&gt;&lt;P&gt;My question is : How can I use DLT from other pipelines?&lt;/P&gt;&lt;P&gt;Currently, my query to create the silver DLT is :&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;CREATE OR REPLACE LIVE TABLE silver_table&lt;BR /&gt;USING DELTA&lt;BR /&gt;AS&lt;BR /&gt;SELECT&lt;BR /&gt;MY DATA TRANSFORMATIONS&lt;BR /&gt;from LIVE.bronze_table&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 16:06:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/use-dlt-from-another-pipeline/m-p/64820#M32668</guid>
      <dc:creator>AxelBrsn</dc:creator>
      <dc:date>2024-03-27T16:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use DLT from another pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/use-dlt-from-another-pipeline/m-p/64892#M32692</link>
      <description>&lt;P&gt;To my knowledge and as of today, DLT does not support multi schemas and you can’t cross from one pipeline to another using “live.table”. However, live table is just a materialized view. You can change your script to create materialized view instead of (live table) but don’t use from live.table (This only works if it is in the same pipeline) . Try from “schema”.table. Something like this&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;CREATE&lt;/SPAN&gt;&lt;SPAN&gt; MATERIALIZED &lt;/SPAN&gt;&lt;SPAN&gt;VIEW&lt;/SPAN&gt;&lt;SPAN&gt; my_silver_table &lt;/SPAN&gt;
&lt;SPAN&gt;AS&lt;/SPAN&gt;
&lt;SPAN&gt;SELECT&lt;/SPAN&gt; &lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;distinct&lt;/SPAN&gt;&lt;SPAN&gt; event_id) &lt;/SPAN&gt;&lt;SPAN&gt;as&lt;/SPAN&gt;&lt;SPAN&gt; event_count &lt;/SPAN&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; my_bronze_table;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 10:33:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/use-dlt-from-another-pipeline/m-p/64892#M32692</guid>
      <dc:creator>standup1</dc:creator>
      <dc:date>2024-03-28T10:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use DLT from another pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/use-dlt-from-another-pipeline/m-p/64921#M32702</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102468"&gt;@AxelBrsn&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Unfortunately this is a limitation with DLT as far as my experience goes. You should organize the pipelines in a way that they encompass the full Bronze/Silver/Gold flow, since you don't have control over the schema if you want to make the most out of DLT. You can always read from registered tables, but this can lead to loss of lineage and/or other problems:&lt;/P&gt;&lt;P&gt;Reading from UC: &lt;A href="https://docs.databricks.com/en/delta-live-tables/unity-catalog.html#batch-ingestion-from-a-unity-catalog-table" target="_blank"&gt;https://docs.databricks.com/en/delta-live-tables/unity-catalog.html#batch-ingestion-from-a-unity-catalog-table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Reading from the Hive Metastore:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/delta-live-tables/unity-catalog.html#batch-ingestion-from-a-unity-catalog-table" target="_blank"&gt;https://docs.databricks.com/en/delta-live-tables/unity-catalog.html#batch-ingestion-from-a-unity-catalog-table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using materialized views as&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102950"&gt;@standup1&lt;/a&gt;&amp;nbsp;suggested is also an option, but the cleanest way would be to go with reorganizing your pipelines to follow the full medallion structure from bronze to gold.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 15:15:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/use-dlt-from-another-pipeline/m-p/64921#M32702</guid>
      <dc:creator>YuliyanBogdanov</dc:creator>
      <dc:date>2024-03-28T15:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use DLT from another pipeline</title>
      <link>https://community.databricks.com/t5/data-engineering/use-dlt-from-another-pipeline/m-p/65308#M32778</link>
      <description>&lt;P&gt;Hello, thanks for the answers &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102853"&gt;@YuliyanBogdanov&lt;/a&gt;, &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102950"&gt;@standup1&lt;/a&gt;.&lt;BR /&gt;So the solution is to use &lt;STRONG&gt;catalog&lt;/STRONG&gt;.&lt;STRONG&gt;schema&lt;/STRONG&gt;.&lt;STRONG&gt;table&lt;/STRONG&gt;, and not &lt;STRONG&gt;LIVE&lt;/STRONG&gt;.&lt;STRONG&gt;table&lt;/STRONG&gt;, that's the key, you were right standup!&lt;/P&gt;&lt;P&gt;But, you won't have the visibility of the tables on &lt;EM&gt;Bronze&lt;/EM&gt; Pipeline, if you are on &lt;EM&gt;Silver&lt;/EM&gt; one.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 13:07:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/use-dlt-from-another-pipeline/m-p/65308#M32778</guid>
      <dc:creator>AxelBrsn</dc:creator>
      <dc:date>2024-04-02T13:07:48Z</dc:date>
    </item>
  </channel>
</rss>

