<?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 Delta table definition - Identity column in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/delta-table-definition-identity-column/m-p/49180#M8575</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Would anyone know if it is possible to create a delta table using Python that includes a column that is generated by default as identity (identity column for which the value inserted can be manually overriden)?&lt;/P&gt;&lt;P&gt;There seems to be a way to create an identity column using Python (through Delta Lake api, using the DeltaTableBuilder) that is generated &lt;STRONG&gt;always&lt;/STRONG&gt; as identity (using option "generatedAlwaysAs") but I havent found the equivalent "generatedByDefaultAs" option).&lt;/P&gt;&lt;P&gt;So far, the only way I've found in order to create a column that is generated by default as identity is through Spark SQL.&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 14 Oct 2023 16:03:23 GMT</pubDate>
    <dc:creator>oleprince</dc:creator>
    <dc:date>2023-10-14T16:03:23Z</dc:date>
    <item>
      <title>Delta table definition - Identity column</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-table-definition-identity-column/m-p/49180#M8575</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Would anyone know if it is possible to create a delta table using Python that includes a column that is generated by default as identity (identity column for which the value inserted can be manually overriden)?&lt;/P&gt;&lt;P&gt;There seems to be a way to create an identity column using Python (through Delta Lake api, using the DeltaTableBuilder) that is generated &lt;STRONG&gt;always&lt;/STRONG&gt; as identity (using option "generatedAlwaysAs") but I havent found the equivalent "generatedByDefaultAs" option).&lt;/P&gt;&lt;P&gt;So far, the only way I've found in order to create a column that is generated by default as identity is through Spark SQL.&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 16:03:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-table-definition-identity-column/m-p/49180#M8575</guid>
      <dc:creator>oleprince</dc:creator>
      <dc:date>2023-10-14T16:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delta table definition - Identity column</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-table-definition-identity-column/m-p/94618#M8579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91528"&gt;@oleprince&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;As far as I know, it's not possible yet to create tables with Identity columns using pyspark (DeltaTable api). You can create generated columns, but Identity columns are not allowed.&lt;BR /&gt;The only way to achieve this is through Spark Sql.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2024 16:29:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-table-definition-identity-column/m-p/94618#M8579</guid>
      <dc:creator>gmiguel</dc:creator>
      <dc:date>2024-10-17T16:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delta table definition - Identity column</title>
      <link>https://community.databricks.com/t5/get-started-discussions/delta-table-definition-identity-column/m-p/126696#M10421</link>
      <description>&lt;P&gt;There is a `generatedByDefaultAs` option now, see&amp;nbsp;&lt;A href="https://github.com/delta-io/delta/pull/3404" target="_blank"&gt;https://github.com/delta-io/delta/pull/3404&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 12:39:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/delta-table-definition-identity-column/m-p/126696#M10421</guid>
      <dc:creator>Malthe</dc:creator>
      <dc:date>2025-07-28T12:39:59Z</dc:date>
    </item>
  </channel>
</rss>

