<?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 Merge error in  streaming case in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/merge-error-in-streaming-case/m-p/52692#M29551</link>
    <description>&lt;P&gt;I have a streaming case, where i stream from 2 sources: source1 and source2. I write to seperate streams to pick the data up from the landing area (step1). then i write 2 extra streams to apply some tranformations in order to give them the same schema and have the 2 streams write them to the same target (let's call it union_stream) (step 2). So far everything works fine. Then i write another stream to apply some tranformations to union_stream and write it to union_stream2 (step 3).&amp;nbsp; In this step all the data from source 1 flows perfectly through the stream but the data from source 2 doesn't. When i filter on source_name = source2, i get the error:&amp;nbsp;Keeping the source of the MERGE statement materialized has failed repeatedly. Even when i execute step 3 without streaming i get the same error. I have also tried to not perform any transformations in step 3 and just do a MERGE into a table with the exact same schema, this led to the same error.&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Thx in advance&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 14:22:56 GMT</pubDate>
    <dc:creator>Remit</dc:creator>
    <dc:date>2023-11-17T14:22:56Z</dc:date>
    <item>
      <title>Merge error in  streaming case</title>
      <link>https://community.databricks.com/t5/data-engineering/merge-error-in-streaming-case/m-p/52692#M29551</link>
      <description>&lt;P&gt;I have a streaming case, where i stream from 2 sources: source1 and source2. I write to seperate streams to pick the data up from the landing area (step1). then i write 2 extra streams to apply some tranformations in order to give them the same schema and have the 2 streams write them to the same target (let's call it union_stream) (step 2). So far everything works fine. Then i write another stream to apply some tranformations to union_stream and write it to union_stream2 (step 3).&amp;nbsp; In this step all the data from source 1 flows perfectly through the stream but the data from source 2 doesn't. When i filter on source_name = source2, i get the error:&amp;nbsp;Keeping the source of the MERGE statement materialized has failed repeatedly. Even when i execute step 3 without streaming i get the same error. I have also tried to not perform any transformations in step 3 and just do a MERGE into a table with the exact same schema, this led to the same error.&lt;/P&gt;&lt;P&gt;Any help would be appreciated. Thx in advance&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 14:22:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/merge-error-in-streaming-case/m-p/52692#M29551</guid>
      <dc:creator>Remit</dc:creator>
      <dc:date>2023-11-17T14:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Merge error in  streaming case</title>
      <link>https://community.databricks.com/t5/data-engineering/merge-error-in-streaming-case/m-p/53145#M29696</link>
      <description>&lt;P&gt;Solved the problem by changing the cluster settings. The whole thing works when disabling Photon Acceleration...&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 15:56:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/merge-error-in-streaming-case/m-p/53145#M29696</guid>
      <dc:creator>Remit</dc:creator>
      <dc:date>2023-11-20T15:56:31Z</dc:date>
    </item>
  </channel>
</rss>

