<?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 How to get a snapshot of a streaming delta table as a static table? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-get-a-snapshot-of-a-streaming-delta-table-as-a-static/m-p/12742#M7507</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume that I have a streaming delta table. Is there any way to get snapshot of the streaming table as a static table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason is that I need to join this streaming table with a static table by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;output = output.join(country_information, ["Country"], "left")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;"Output" is a static table and "country_information" is the streaming table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Append mode error: LeftOuter join with a streaming DataFrame/Dataset on the right and a static DataFrame/Dataset on the left is not supported;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I cannot change the the above code into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;country_information = country_information.join(output, ["Country"], "left")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the logic doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 00:20:55 GMT</pubDate>
    <dc:creator>Mado</dc:creator>
    <dc:date>2023-01-11T00:20:55Z</dc:date>
    <item>
      <title>How to get a snapshot of a streaming delta table as a static table?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-get-a-snapshot-of-a-streaming-delta-table-as-a-static/m-p/12742#M7507</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume that I have a streaming delta table. Is there any way to get snapshot of the streaming table as a static table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason is that I need to join this streaming table with a static table by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;output = output.join(country_information, ["Country"], "left")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;"Output" is a static table and "country_information" is the streaming table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I get the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Append mode error: LeftOuter join with a streaming DataFrame/Dataset on the right and a static DataFrame/Dataset on the left is not supported;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I cannot change the the above code into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;country_information = country_information.join(output, ["Country"], "left")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because the logic doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 00:20:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-get-a-snapshot-of-a-streaming-delta-table-as-a-static/m-p/12742#M7507</guid>
      <dc:creator>Mado</dc:creator>
      <dc:date>2023-01-11T00:20:55Z</dc:date>
    </item>
  </channel>
</rss>

