<?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: BUG: Merge with schema evolution doesn't work in update clause in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/bug-merge-with-schema-evolution-doesn-t-work-in-update-clause/m-p/143491#M52188</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/112558"&gt;@iyashk-DB&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response, it will help in resolving the issue.&lt;/P&gt;&lt;P&gt;But, can you mark it as a bug and report it? Because specifying just the column without the table name is a little risky.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jan 2026 14:26:45 GMT</pubDate>
    <dc:creator>Dhruv-22</dc:creator>
    <dc:date>2026-01-09T14:26:45Z</dc:date>
    <item>
      <title>BUG: Merge with schema evolution doesn't work in update clause</title>
      <link>https://community.databricks.com/t5/data-engineering/bug-merge-with-schema-evolution-doesn-t-work-in-update-clause/m-p/143470#M52181</link>
      <description>&lt;P&gt;I am referring to this &lt;A href="https://docs.databricks.com/aws/en/delta/update-schema#merge-schema-evolution" target="_self"&gt;link&lt;/A&gt; of databricks documentation. Here is a screenshot of the same&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-09 at 16.33.15.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22815i5E50F4D0B7F3C04A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-01-09 at 16.33.15.png" alt="Screenshot 2026-01-09 at 16.33.15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the documentation the UPDATE command should work when the target table doesn't have the column but it is present in source. I tried the same with the following code and it failed.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%sql
CREATE OR REPLACE TABLE edw_nprd_aen.bronze.test_table (
  a INT
  , b STRING
);

INSERT INTO edw_nprd_aen.bronze.test_table
VALUES (1, 'a'), (2, 'b'), (3, 'c');

SELECT *
FROM edw_nprd_aen.bronze.test_table&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dhruv22_0-1767956896097.png" style="width: 200px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22816iAD37E6DBC28C7CE1/image-size/small?v=v2&amp;amp;px=200" role="button" title="Dhruv22_0-1767956896097.png" alt="Dhruv22_0-1767956896097.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;%sql
CREATE OR REPLACE TEMPORARY VIEW test_view (
  a
  , c
)
AS VALUES (1, 'e'), (2, NULL), (3, 'd');&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;%sql
MERGE WITH SCHEMA EVOLUTION INTO edw_nprd_aen.bronze.test_table
USING test_view
ON test_table.a = test_view.a
WHEN MATCHED THEN UPDATE SET
  test_table.c = test_view.c

#Output
[DELTA_MERGE_UNRESOLVED_EXPRESSION] Cannot resolve test_table.c in UPDATE clause given columns test_view.a, test_view.c. SQLSTATE: 42601
== SQL (line 1, position 1) ==
MERGE WITH SCHEMA EVOLUTION INTO edw_nprd_aen.bronze.test_table
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
USING test_view
^^^^^^^^^^^^^^^
ON test_table.a = test_view.a
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
WHEN MATCHED THEN UPDATE SET
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  test_table.c = test_view.c
^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;/LI-CODE&gt;&lt;P&gt;I have run this on both serverless and all-purpose cluster.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 11:16:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/bug-merge-with-schema-evolution-doesn-t-work-in-update-clause/m-p/143470#M52181</guid>
      <dc:creator>Dhruv-22</dc:creator>
      <dc:date>2026-01-09T11:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Merge with schema evolution doesn't work in update clause</title>
      <link>https://community.databricks.com/t5/data-engineering/bug-merge-with-schema-evolution-doesn-t-work-in-update-clause/m-p/143473#M52182</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/99515"&gt;@Dhruv-22&lt;/a&gt;&amp;nbsp;I tested this and when I do something like follows, it works:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;%sql
MERGE WITH SCHEMA EVOLUTION INTO main.yash.test_table
USING test_view
ON test_table.a = test_view.a
WHEN MATCHED THEN
  UPDATE SET c = test_view.c&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Instead of mentioning it as test_table.c, I just did c, and it worked.&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-01-09 at 5.41.35 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/22820i20CCCC43F219B1A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-01-09 at 5.41.35 PM.png" alt="Screenshot 2026-01-09 at 5.41.35 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 12:13:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/bug-merge-with-schema-evolution-doesn-t-work-in-update-clause/m-p/143473#M52182</guid>
      <dc:creator>iyashk-DB</dc:creator>
      <dc:date>2026-01-09T12:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: BUG: Merge with schema evolution doesn't work in update clause</title>
      <link>https://community.databricks.com/t5/data-engineering/bug-merge-with-schema-evolution-doesn-t-work-in-update-clause/m-p/143491#M52188</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/112558"&gt;@iyashk-DB&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response, it will help in resolving the issue.&lt;/P&gt;&lt;P&gt;But, can you mark it as a bug and report it? Because specifying just the column without the table name is a little risky.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jan 2026 14:26:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/bug-merge-with-schema-evolution-doesn-t-work-in-update-clause/m-p/143491#M52188</guid>
      <dc:creator>Dhruv-22</dc:creator>
      <dc:date>2026-01-09T14:26:45Z</dc:date>
    </item>
  </channel>
</rss>

