<?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: How to find the identity column seed value? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-find-the-identity-column-seed-value/m-p/22671#M15562</link>
    <description>&lt;P&gt;When you go to source delta files on the dbfs, you can see that in JSON and CRC, there is field delta.identity.highWaterMark, which contains max identity value. I couldn't find any way to get that value in SQL. Of course, you can aggregate MAX. I asked the Delta team if there a way to get highWaterMark&lt;/P&gt;</description>
    <pubDate>Sun, 17 Apr 2022 18:19:05 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2022-04-17T18:19:05Z</dc:date>
    <item>
      <title>How to find the identity column seed value?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-find-the-identity-column-seed-value/m-p/22670#M15561</link>
      <description>&lt;P&gt;How to find the identity column seed value? A seed value is required when we need specifically like start generating new values from a number (most likely we need to keep the original key values when data is reloaded from another source, and any new data need starts from the current max value +1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new from runtime 10.4&lt;/P&gt;&lt;P&gt;GENERATED { ALWAYS | BY DEFAULT } AS IDENTITY [ ( [ START WITH start ] [ INCREMENT BY step ] ) ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done searching on documents, and there is no result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in sql server, the equivalent statement is&lt;/P&gt;&lt;P&gt;-- check current identity seed value&lt;/P&gt;&lt;P&gt;DBCC CHECKIDENT ('dbo.table_with_identity_col');&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 05:27:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-find-the-identity-column-seed-value/m-p/22670#M15561</guid>
      <dc:creator>lizou</dc:creator>
      <dc:date>2022-04-17T05:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the identity column seed value?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-find-the-identity-column-seed-value/m-p/22671#M15562</link>
      <description>&lt;P&gt;When you go to source delta files on the dbfs, you can see that in JSON and CRC, there is field delta.identity.highWaterMark, which contains max identity value. I couldn't find any way to get that value in SQL. Of course, you can aggregate MAX. I asked the Delta team if there a way to get highWaterMark&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 18:19:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-find-the-identity-column-seed-value/m-p/22671#M15562</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-04-17T18:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the identity column seed value?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-find-the-identity-column-seed-value/m-p/22672#M15563</link>
      <description>&lt;P&gt;found it,  thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;of course, it will be nice to have a sql function available to query the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\"delta.identity.start\":984888,\"delta.identity.highWaterMark\":1004409,\"comment\":\"identity\",\"delta.identity.step\":1}&lt;/P&gt;</description>
      <pubDate>Sun, 17 Apr 2022 21:51:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-find-the-identity-column-seed-value/m-p/22672#M15563</guid>
      <dc:creator>lizou</dc:creator>
      <dc:date>2022-04-17T21:51:10Z</dc:date>
    </item>
  </channel>
</rss>

