<?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: Getting Error when Inserting data into table with the column as bigint in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/getting-error-when-inserting-data-into-table-with-the-column-as/m-p/4895#M1479</link>
    <description>&lt;P&gt;Hi @jitendra goswami​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We haven't heard from you since the last response from @Werner Stinckens​&amp;nbsp;r​, and I was checking back to see if her suggestions helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else, If you have any solution, please share it with the community, as it can be helpful to others.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 06:39:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-19T06:39:21Z</dc:date>
    <item>
      <title>Getting Error when Inserting data into table with the column as bigint</title>
      <link>https://community.databricks.com/t5/data-engineering/getting-error-when-inserting-data-into-table-with-the-column-as/m-p/4893#M1477</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating table using Databricks SQL editor. The table definition is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE IF EXISTS [database].***_test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE TABLE [database].***_jitu_test&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp; id bigint&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;USING delta&lt;/P&gt;&lt;P&gt;LOCATION 'test/raw/***_jitu_test'&lt;/P&gt;&lt;P&gt;TBLPROPERTIES ('delta.minReaderVersion'='1','delta.minWriterVersion'='2','delta.feature.allowColumnDefaults' = 'supported');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table gets create successfully. When I do insert&lt;/P&gt;&lt;P&gt;insert into [database].***_test (id ) values (1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It give error. &lt;/P&gt;&lt;P&gt;&lt;U&gt;Java.lang.Integer cannot be cast to java.lang.Long&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to so cast because then in every column with bigint I have to write cast.  I tried using below with now luck. is there configuration I have to set or its the issue with product&lt;/P&gt;&lt;P&gt;--SET ansi_mode = true;&lt;/P&gt;&lt;P&gt;--SET spark.sql.ansi.enabled=true;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 15:17:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/getting-error-when-inserting-data-into-table-with-the-column-as/m-p/4893#M1477</guid>
      <dc:creator>Jits</dc:creator>
      <dc:date>2023-05-02T15:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error when Inserting data into table with the column as bigint</title>
      <link>https://community.databricks.com/t5/data-engineering/getting-error-when-inserting-data-into-table-with-the-column-as/m-p/4894#M1478</link>
      <description>&lt;P&gt;can you try with values(1L)?&lt;/P&gt;&lt;P&gt;The L part specifies the number is a longType.&lt;/P&gt;&lt;P&gt;&lt;A href="https://spark.apache.org/docs/latest/sql-ref-literals.html#numeric-literal" target="test_blank"&gt;https://spark.apache.org/docs/latest/sql-ref-literals.html#numeric-literal&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 09:00:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/getting-error-when-inserting-data-into-table-with-the-column-as/m-p/4894#M1478</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-05-03T09:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Error when Inserting data into table with the column as bigint</title>
      <link>https://community.databricks.com/t5/data-engineering/getting-error-when-inserting-data-into-table-with-the-column-as/m-p/4895#M1479</link>
      <description>&lt;P&gt;Hi @jitendra goswami​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We haven't heard from you since the last response from @Werner Stinckens​&amp;nbsp;r​, and I was checking back to see if her suggestions helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else, If you have any solution, please share it with the community, as it can be helpful to others.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 06:39:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/getting-error-when-inserting-data-into-table-with-the-column-as/m-p/4895#M1479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-19T06:39:21Z</dc:date>
    </item>
  </channel>
</rss>

