<?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: Issue with inserting multiple rows in Delta table with identity column in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/issue-with-inserting-multiple-rows-in-delta-table-with-identity/m-p/9052#M4547</link>
    <description>&lt;P&gt;Just updating it is possible this issue has now been addressed.&lt;/P&gt;&lt;P&gt;As before working on Azure Databricks 11.3 DBR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserting into managed table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/650iCE454EB869868E72/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;Also appears to be addressed for autoloader insertion into unmanaged table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 04:38:49 GMT</pubDate>
    <dc:creator>bb2312</dc:creator>
    <dc:date>2023-03-10T04:38:49Z</dc:date>
    <item>
      <title>Issue with inserting multiple rows in Delta table with identity column</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-inserting-multiple-rows-in-delta-table-with-identity/m-p/9050#M4545</link>
      <description>&lt;P&gt;Running DBR 11.3 / Azure Databricks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table definition below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sql
CREATE OR REPLACE TABLE demo2 (
  id BIGINT GENERATED BY DEFAULT AS IDENTITY,
  product_type STRING,
  sales BIGINT
)
USING DELTA
LOCATION '/folderlocation/'
TBLPROPERTIES (
'delta.columnMapping.mode' = 'name',
   'delta.minReaderVersion' = '2',
   'delta.minWriterVersion' = '5')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Inserting 1 row works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sql
INSERT INTO demo2 (product_type, sales)
VALUES ("cell", 130000);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;On attempting to insert a new row I get this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"AnalysisException: Column id is not specified in INSERT"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can insert columns explicitly as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%sql
INSERT INTO demo2 (id,product_type, sales)
VALUES (3,"batt", 130000);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I can even insert duplicate column values like so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="err2"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/637i52F5D82666832478/image-size/large?v=v2&amp;amp;px=999" role="button" title="err2" alt="err2" /&gt;&lt;/span&gt;I have tried changing the identity definition to "GENERATED ALWAYS AS IDENTITY" however get the same result. Am I doing this incorrectly or missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 00:44:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-inserting-multiple-rows-in-delta-table-with-identity/m-p/9050#M4545</guid>
      <dc:creator>bb2312</dc:creator>
      <dc:date>2023-02-21T00:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with inserting multiple rows in Delta table with identity column</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-inserting-multiple-rows-in-delta-table-with-identity/m-p/9051#M4546</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/delta-io/delta/issues/1215" target="test_blank"&gt;https://github.com/delta-io/delta/issues/1215&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is an open issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can enter your own values because you use BY DEFAULT instead of ALWAYS.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2023 12:28:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-inserting-multiple-rows-in-delta-table-with-identity/m-p/9051#M4546</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-02-21T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with inserting multiple rows in Delta table with identity column</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-inserting-multiple-rows-in-delta-table-with-identity/m-p/9052#M4547</link>
      <description>&lt;P&gt;Just updating it is possible this issue has now been addressed.&lt;/P&gt;&lt;P&gt;As before working on Azure Databricks 11.3 DBR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inserting into managed table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/650iCE454EB869868E72/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;Also appears to be addressed for autoloader insertion into unmanaged table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 04:38:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-inserting-multiple-rows-in-delta-table-with-identity/m-p/9052#M4547</guid>
      <dc:creator>bb2312</dc:creator>
      <dc:date>2023-03-10T04:38:49Z</dc:date>
    </item>
  </channel>
</rss>

