<?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: Row IDs for DLTs in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/row-ids-for-dlts/m-p/120846#M46258</link>
    <description>&lt;P&gt;Thanks for the reply but I am still facing problems,&lt;BR /&gt;When I try to query _metadata.row_id directly in SQL I still get the same error (see attached screenshots).&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2025 18:04:24 GMT</pubDate>
    <dc:creator>fernandomendi</dc:creator>
    <dc:date>2025-06-03T18:04:24Z</dc:date>
    <item>
      <title>Row IDs for DLTs</title>
      <link>https://community.databricks.com/t5/data-engineering/row-ids-for-dlts/m-p/120810#M46251</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a DLT pipeline where I am reading from a cloud source and want to mode data through some tables onto a final Gold layer table. I would like to use SQL to write my DLTs. I would also like to have a row_id for each row to identify each independently.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have tried enabling&amp;nbsp;&lt;SPAN class=""&gt;delta&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;enableRowTracking then querying _metadata.row_id but I get an&amp;nbsp;&lt;SPAN&gt;UNRESOLVED_COLUMN error. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I have also tried to use IDENTITY columns which appear to be correctly created in the table definition in UC but just get set to "null" when I run an update.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Can anyone help here?&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 10:37:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/row-ids-for-dlts/m-p/120810#M46251</guid>
      <dc:creator>fernandomendi</dc:creator>
      <dc:date>2025-06-03T10:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Row IDs for DLTs</title>
      <link>https://community.databricks.com/t5/data-engineering/row-ids-for-dlts/m-p/120832#M46255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/107401"&gt;@fernandomendi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Delta Live Tables (DLT), if you want to assign a unique identifier to each row, enabling delta.enableRowTracking and selecting _metadata.row_id directly in your SQL query is a valid approach, just be sure to include it explicitly to avoid UNRESOLVED_COLUMN errors. As for identity columns, they aren’t supported for updates or merges and will return NULL when used in that context. They’re intended for use in streaming tables, so it's best to avoid updating them.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 15:14:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/row-ids-for-dlts/m-p/120832#M46255</guid>
      <dc:creator>SP_6721</dc:creator>
      <dc:date>2025-06-03T15:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Row IDs for DLTs</title>
      <link>https://community.databricks.com/t5/data-engineering/row-ids-for-dlts/m-p/120846#M46258</link>
      <description>&lt;P&gt;Thanks for the reply but I am still facing problems,&lt;BR /&gt;When I try to query _metadata.row_id directly in SQL I still get the same error (see attached screenshots).&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 18:04:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/row-ids-for-dlts/m-p/120846#M46258</guid>
      <dc:creator>fernandomendi</dc:creator>
      <dc:date>2025-06-03T18:04:24Z</dc:date>
    </item>
  </channel>
</rss>

