<?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: [NUMERIC_VALUE_OUT_OF_RANGE.WITHOUT_SUGGESTION]  The -12874815911431.6200000000 rounded half up in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136065#M50477</link>
    <description>&lt;P&gt;I think it is related to number before conversion to Decimal. Please check what type is it?&lt;/P&gt;</description>
    <pubDate>Sun, 26 Oct 2025 12:32:09 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2025-10-26T12:32:09Z</dc:date>
    <item>
      <title>[NUMERIC_VALUE_OUT_OF_RANGE.WITHOUT_SUGGESTION]  The -12874815911431.6200000000 rounded half up from</title>
      <link>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136059#M50474</link>
      <description>&lt;P&gt;I am using dataricks version 15.4 and getting below error whicle reading from jdbc and writing to aws S3 location:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;[&lt;A class="" href="https://docs.databricks.com/error-messages/numeric-value-out-of-range-error-class.html#without_suggestion" target="_blank" rel="noopener noreferrer"&gt;NUMERIC_VALUE_OUT_OF_RANGE.WITHOUT_SUGGESTION&lt;/A&gt;] The -12874815911431.6200000000 rounded half up from -12874815911431.6200000000 cannot be represented as Decimal(23, 10). SQLSTATE: 22003&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;I have tried changing the schema to string,decimal(38,10) and doubletype but the erroe is always same.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 26 Oct 2025 08:07:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136059#M50474</guid>
      <dc:creator>flashmav1</dc:creator>
      <dc:date>2025-10-26T08:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: [NUMERIC_VALUE_OUT_OF_RANGE.WITHOUT_SUGGESTION]  The -12874815911431.6200000000 rounded half up</title>
      <link>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136065#M50477</link>
      <description>&lt;P&gt;I think it is related to number before conversion to Decimal. Please check what type is it?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2025 12:32:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136065#M50477</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2025-10-26T12:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: [NUMERIC_VALUE_OUT_OF_RANGE.WITHOUT_SUGGESTION]  The -12874815911431.6200000000 rounded half up</title>
      <link>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136093#M50485</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/194423"&gt;@flashmav1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;In first case it didn't work because your number&amp;nbsp;has 14 digits before the decimal point.&amp;nbsp;DECIMAL(23,10) only allows 13 digits before the decimal point. In general, when you work with Decimal you deal with 2 things:&lt;/P&gt;&lt;P&gt;- Precision (23): Total number of digits in number - in your case 23&lt;/P&gt;&lt;P&gt;- Scale (10): Number of digits after the decimal point - in your case 10&lt;/P&gt;&lt;P&gt;- available for integer part: 23 - 10 = 13 digits&lt;/P&gt;&lt;P&gt;Regarding your second attempt. According to docs one reason that can cause this error to appear is when&amp;nbsp;&lt;SPAN&gt;any value in source column have an actual precision greater 38. So you can try to query your source database. Maybe you have some weird outliers in data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can also try pushing the casting to your source and see if that works. Start by casting to a string&lt;/P&gt;&lt;LI-CODE lang="python"&gt;spark.read.format("jdbc")
.option("url", jdbcUrl)
.option("query", "select CAST(your_column AS STRING) from your_table")
.load()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2025 16:40:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136093#M50485</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-10-26T16:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: [NUMERIC_VALUE_OUT_OF_RANGE.WITHOUT_SUGGESTION]  The -12874815911431.6200000000 rounded half up</title>
      <link>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136104#M50490</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HubertDudek_0-1761508257951.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/21044i72C63B56774E6729/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HubertDudek_0-1761508257951.png" alt="HubertDudek_0-1761508257951.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Oct 2025 19:51:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136104#M50490</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2025-10-26T19:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: [NUMERIC_VALUE_OUT_OF_RANGE.WITHOUT_SUGGESTION]  The -12874815911431.6200000000 rounded half up</title>
      <link>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136114#M50495</link>
      <description>&lt;P&gt;I am able to read it like this but unable to write to s3 locaition&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 04:37:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136114#M50495</guid>
      <dc:creator>flashmav1</dc:creator>
      <dc:date>2025-10-27T04:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: [NUMERIC_VALUE_OUT_OF_RANGE.WITHOUT_SUGGESTION]  The -12874815911431.6200000000 rounded half up</title>
      <link>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136133#M50497</link>
      <description>&lt;P&gt;I was working in databricks pyspark code side becuase the error seems like the type issue in pyspark but the actual issue is reading the 14 interger value from source. So casting to string(in my case nvarchar) worked.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 07:06:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136133#M50497</guid>
      <dc:creator>flashmav1</dc:creator>
      <dc:date>2025-10-27T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: [NUMERIC_VALUE_OUT_OF_RANGE.WITHOUT_SUGGESTION]  The -12874815911431.6200000000 rounded half up</title>
      <link>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136135#M50498</link>
      <description>&lt;P&gt;Cool, glad that it worked &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 07:13:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/numeric-value-out-of-range-without-suggestion-the-12874815911431/m-p/136135#M50498</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-10-27T07:13:37Z</dc:date>
    </item>
  </channel>
</rss>

