<?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 Identity error Spark Sql:not enough data columns;target has 3 but the inserted data has 2, it's the identity column which is missing here in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/identity-error-spark-sql-not-enough-data-columns-target-has-3/m-p/10000#M5258</link>
    <description>&lt;P&gt;While inserting into target table i am getting an error '"not enough data columns;target has 3 but the inserted data has 2" but it's the identity column which is the 8th column ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert into table A&lt;/P&gt;&lt;P&gt;(col 1,col 2,col3)&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;col2,&lt;/P&gt;&lt;P&gt;col3&lt;/P&gt;&lt;P&gt;from table B&lt;/P&gt;&lt;P&gt;join table C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Feb 2023 18:51:00 GMT</pubDate>
    <dc:creator>bluesky</dc:creator>
    <dc:date>2023-02-04T18:51:00Z</dc:date>
    <item>
      <title>Identity error Spark Sql:not enough data columns;target has 3 but the inserted data has 2, it's the identity column which is missing here</title>
      <link>https://community.databricks.com/t5/data-engineering/identity-error-spark-sql-not-enough-data-columns-target-has-3/m-p/10000#M5258</link>
      <description>&lt;P&gt;While inserting into target table i am getting an error '"not enough data columns;target has 3 but the inserted data has 2" but it's the identity column which is the 8th column ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert into table A&lt;/P&gt;&lt;P&gt;(col 1,col 2,col3)&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;col2,&lt;/P&gt;&lt;P&gt;col3&lt;/P&gt;&lt;P&gt;from table B&lt;/P&gt;&lt;P&gt;join table C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 18:51:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/identity-error-spark-sql-not-enough-data-columns-target-has-3/m-p/10000#M5258</guid>
      <dc:creator>bluesky</dc:creator>
      <dc:date>2023-02-04T18:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Identity error Spark Sql:not enough data columns;target has 3 but the inserted data has 2, it's the identity column which is missing here</title>
      <link>https://community.databricks.com/t5/data-engineering/identity-error-spark-sql-not-enough-data-columns-target-has-3/m-p/10002#M5260</link>
      <description>&lt;P&gt;Hi @sky blue​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 10:05:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/identity-error-spark-sql-not-enough-data-columns-target-has-3/m-p/10002#M5260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-10T10:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Identity error Spark Sql:not enough data columns;target has 3 but the inserted data has 2, it's the identity column which is missing here</title>
      <link>https://community.databricks.com/t5/data-engineering/identity-error-spark-sql-not-enough-data-columns-target-has-3/m-p/10001#M5259</link>
      <description>&lt;P&gt;Hi, are all the rows missing the column or a few? &lt;/P&gt;&lt;P&gt;Also, you can you filter out bad rows using&amp;nbsp;&lt;B&gt;expectations&lt;/B&gt;&amp;nbsp;, or your DQ framework and backfill it once the corrected records arrive or you can use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;.option("overwriteSchema", "true")&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 13:06:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/identity-error-spark-sql-not-enough-data-columns-target-has-3/m-p/10001#M5259</guid>
      <dc:creator>Debayan</dc:creator>
      <dc:date>2023-02-05T13:06:26Z</dc:date>
    </item>
  </channel>
</rss>

