You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by Uroš Bojanić <ur...@apache.org> on 2026/08/25 11:18:58 UTC

[VOTE] SPIP: Add the DECFLOAT data type

Hi all,

Discussion regarding DECFLOAT data type has settled, so I'm calling a vote on the SPIP "Add the DECFLOAT data type". The SPIP proposes to add a new Spark SQL data type: DECFLOAT (IEEE 754 decimal64 / decimal128), for base-10 floating-point decimals with per-value exponents. The SPIP document has been updated along the way to address the feedback raised in the doc & discussion thread.

DISCUSS thread: https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm
Spark JIRA ID: https://issues.apache.org/jira/browse/SPARK-58820
SPIP document: https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E

The vote is open for at least the next 72 hours.

[ ] +1: Accept the proposal as an official SPIP
[ ] +0
[ ] -1: I don't think this is a good idea because...

Thank you!

Best,
Uroš

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org


Re: [VOTE] SPIP: Add the DECFLOAT data type

Posted by Ian Cook <ia...@apache.org>.
-0 (non-binding)

I'd like to see a more concrete and detailed proposal for how this will
interop across Arrow before this is adopted in Spark. The Arrow community
is happy to engage and collaborate on this.

Ian

On Tue, Aug 25, 2026 at 9:57 AM Russell Spitzer <ru...@gmail.com>
wrote:

> The discussion thread and design doc seem to only have two people
> discussing the topic, are we sure there aren't any other comments? I know
> of some folks who are chiming in on the similar Parquet proposal, and I was
> wondering if we should get alignment there before adding the type to Spark?
>
> On Tue, Aug 25, 2026 at 8:35 AM Shrirang Mhalgi <sh...@gmail.com>
> wrote:
>
>> +1 (non binding) Thank you Uroš.
>>
>> Regards,
>> Shrirang.
>>
>> On Tue, Aug 25, 2026 at 6:24 AM Serge Rielau <se...@rielau.com> wrote:
>>
>>> +1 (non binding)
>>>
>>>
>>> On Aug 25, 2026, at 5:20 AM, Stefan Kandic via dev <de...@spark.apache.org>
>>> wrote:
>>>
>>> + 1
>>>
>>> *From: *Uroš Bojanić <ur...@apache.org>
>>> *Date: *Tuesday, 25 August 2026 at 13:20
>>> *To: *dev@spark.apache.org <de...@spark.apache.org>
>>> *Subject: *[VOTE] SPIP: Add the DECFLOAT data type
>>>
>>> Hi all,
>>>
>>> Discussion regarding DECFLOAT data type has settled, so I'm calling a
>>> vote on the SPIP "Add the DECFLOAT data type". The SPIP proposes to add a
>>> new Spark SQL data type: DECFLOAT (IEEE 754 decimal64 / decimal128), for
>>> base-10 floating-point decimals with per-value exponents. The SPIP document
>>> has been updated along the way to address the feedback raised in the doc &
>>> discussion thread.
>>>
>>> DISCUSS thread:
>>> https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm
>>> Spark JIRA ID: https://issues.apache.org/jira/browse/SPARK-58820
>>> SPIP document:
>>> https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E
>>>
>>> The vote is open for at least the next 72 hours.
>>>
>>> [ ] +1: Accept the proposal as an official SPIP
>>> [ ] +0
>>> [ ] -1: I don't think this is a good idea because...
>>>
>>> Thank you!
>>>
>>> Best,
>>> Uroš
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe e-mail: dev-unsubscribe@spark.apache.org
>>>
>>>
>>>

Re: [VOTE] SPIP: Add the DECFLOAT data type

Posted by Serge Rielau <se...@rielau.com>.
Russell,

I think we are facing a chicken egg problem here. One of the objections to the Parquet proposal from last year was that there were no stated needs from Open Source engines.

That being said, I think runtime engines and storage play different roles here.
Where our discussion on Parquet centers around maximizing what the storage type can accommodate (cohorts, special values, maximum precision, range, etc). The Spark runtime engine should focus on what its users are likely to use, general directive to prefer standards, and a preference to rely on existing, battle hardened libraries.

It goes without saying that this SPIP shall rely on the Parquet type. However, it will not need to cover its domain completely, or match its encoding.

Cheers
Serge


On Aug 25, 2026, at 6:56 AM, Russell Spitzer <ru...@gmail.com> wrote:

The discussion thread and design doc seem to only have two people discussing the topic, are we sure there aren't any other comments? I know of some folks who are chiming in on the similar Parquet proposal, and I was wondering if we should get alignment there before adding the type to Spark?

On Tue, Aug 25, 2026 at 8:35 AM Shrirang Mhalgi <sh...@gmail.com>> wrote:
+1 (non binding) Thank you Uroš.

Regards,
Shrirang.

On Tue, Aug 25, 2026 at 6:24 AM Serge Rielau <se...@rielau.com>> wrote:
+1 (non binding)


On Aug 25, 2026, at 5:20 AM, Stefan Kandic via dev <de...@spark.apache.org>> wrote:

+ 1

From: Uroš Bojanić <ur...@apache.org>>
Date: Tuesday, 25 August 2026 at 13:20
To: dev@spark.apache.org<ma...@spark.apache.org> <de...@spark.apache.org>>
Subject: [VOTE] SPIP: Add the DECFLOAT data type

Hi all,

Discussion regarding DECFLOAT data type has settled, so I'm calling a vote on the SPIP "Add the DECFLOAT data type". The SPIP proposes to add a new Spark SQL data type: DECFLOAT (IEEE 754 decimal64 / decimal128), for base-10 floating-point decimals with per-value exponents. The SPIP document has been updated along the way to address the feedback raised in the doc & discussion thread.

DISCUSS thread: https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm
Spark JIRA ID: https://issues.apache.org/jira/browse/SPARK-58820
SPIP document: https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E

The vote is open for at least the next 72 hours.

[ ] +1: Accept the proposal as an official SPIP
[ ] +0
[ ] -1: I don't think this is a good idea because...

Thank you!

Best,
Uroš

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org<ma...@spark.apache.org>




Re: [VOTE] SPIP: Add the DECFLOAT data type

Posted by Russell Spitzer <ru...@gmail.com>.
The discussion thread and design doc seem to only have two people
discussing the topic, are we sure there aren't any other comments? I know
of some folks who are chiming in on the similar Parquet proposal, and I was
wondering if we should get alignment there before adding the type to Spark?

On Tue, Aug 25, 2026 at 8:35 AM Shrirang Mhalgi <sh...@gmail.com>
wrote:

> +1 (non binding) Thank you Uroš.
>
> Regards,
> Shrirang.
>
> On Tue, Aug 25, 2026 at 6:24 AM Serge Rielau <se...@rielau.com> wrote:
>
>> +1 (non binding)
>>
>>
>> On Aug 25, 2026, at 5:20 AM, Stefan Kandic via dev <de...@spark.apache.org>
>> wrote:
>>
>> + 1
>>
>> *From: *Uroš Bojanić <ur...@apache.org>
>> *Date: *Tuesday, 25 August 2026 at 13:20
>> *To: *dev@spark.apache.org <de...@spark.apache.org>
>> *Subject: *[VOTE] SPIP: Add the DECFLOAT data type
>>
>> Hi all,
>>
>> Discussion regarding DECFLOAT data type has settled, so I'm calling a
>> vote on the SPIP "Add the DECFLOAT data type". The SPIP proposes to add a
>> new Spark SQL data type: DECFLOAT (IEEE 754 decimal64 / decimal128), for
>> base-10 floating-point decimals with per-value exponents. The SPIP document
>> has been updated along the way to address the feedback raised in the doc &
>> discussion thread.
>>
>> DISCUSS thread:
>> https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm
>> Spark JIRA ID: https://issues.apache.org/jira/browse/SPARK-58820
>> SPIP document:
>> https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E
>>
>> The vote is open for at least the next 72 hours.
>>
>> [ ] +1: Accept the proposal as an official SPIP
>> [ ] +0
>> [ ] -1: I don't think this is a good idea because...
>>
>> Thank you!
>>
>> Best,
>> Uroš
>>
>> ---------------------------------------------------------------------
>> To unsubscribe e-mail: dev-unsubscribe@spark.apache.org
>>
>>
>>

Re: [VOTE] SPIP: Add the DECFLOAT data type

Posted by Shrirang Mhalgi <sh...@gmail.com>.
+1 (non binding) Thank you Uroš.

Regards,
Shrirang.

On Tue, Aug 25, 2026 at 6:24 AM Serge Rielau <se...@rielau.com> wrote:

> +1 (non binding)
>
>
> On Aug 25, 2026, at 5:20 AM, Stefan Kandic via dev <de...@spark.apache.org>
> wrote:
>
> + 1
>
> *From: *Uroš Bojanić <ur...@apache.org>
> *Date: *Tuesday, 25 August 2026 at 13:20
> *To: *dev@spark.apache.org <de...@spark.apache.org>
> *Subject: *[VOTE] SPIP: Add the DECFLOAT data type
>
> Hi all,
>
> Discussion regarding DECFLOAT data type has settled, so I'm calling a vote
> on the SPIP "Add the DECFLOAT data type". The SPIP proposes to add a new
> Spark SQL data type: DECFLOAT (IEEE 754 decimal64 / decimal128), for
> base-10 floating-point decimals with per-value exponents. The SPIP document
> has been updated along the way to address the feedback raised in the doc &
> discussion thread.
>
> DISCUSS thread:
> https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm
> Spark JIRA ID: https://issues.apache.org/jira/browse/SPARK-58820
> SPIP document:
> https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E
>
> The vote is open for at least the next 72 hours.
>
> [ ] +1: Accept the proposal as an official SPIP
> [ ] +0
> [ ] -1: I don't think this is a good idea because...
>
> Thank you!
>
> Best,
> Uroš
>
> ---------------------------------------------------------------------
> To unsubscribe e-mail: dev-unsubscribe@spark.apache.org
>
>
>

Re: [VOTE] SPIP: Add the DECFLOAT data type

Posted by Serge Rielau <se...@rielau.com>.
+1 (non binding)

On Aug 25, 2026, at 5:20 AM, Stefan Kandic via dev <de...@spark.apache.org> wrote:

+ 1

From: Uroš Bojanić <ur...@apache.org>
Date: Tuesday, 25 August 2026 at 13:20
To: dev@spark.apache.org <de...@spark.apache.org>
Subject: [VOTE] SPIP: Add the DECFLOAT data type

Hi all,

Discussion regarding DECFLOAT data type has settled, so I'm calling a vote on the SPIP "Add the DECFLOAT data type". The SPIP proposes to add a new Spark SQL data type: DECFLOAT (IEEE 754 decimal64 / decimal128), for base-10 floating-point decimals with per-value exponents. The SPIP document has been updated along the way to address the feedback raised in the doc & discussion thread.

DISCUSS thread: https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm
Spark JIRA ID: https://issues.apache.org/jira/browse/SPARK-58820
SPIP document: https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E

The vote is open for at least the next 72 hours.

[ ] +1: Accept the proposal as an official SPIP
[ ] +0
[ ] -1: I don't think this is a good idea because...

Thank you!

Best,
Uroš

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org



Re: [VOTE] SPIP: Add the DECFLOAT data type

Posted by Stefan Kandic via dev <de...@spark.apache.org>.
+ 1

From: Uroš Bojanić <ur...@apache.org>
Date: Tuesday, 25 August 2026 at 13:20
To: dev@spark.apache.org <de...@spark.apache.org>
Subject: [VOTE] SPIP: Add the DECFLOAT data type

Hi all,

Discussion regarding DECFLOAT data type has settled, so I'm calling a vote on the SPIP "Add the DECFLOAT data type". The SPIP proposes to add a new Spark SQL data type: DECFLOAT (IEEE 754 decimal64 / decimal128), for base-10 floating-point decimals with per-value exponents. The SPIP document has been updated along the way to address the feedback raised in the doc & discussion thread.

DISCUSS thread: https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm
Spark JIRA ID: https://issues.apache.org/jira/browse/SPARK-58820
SPIP document: https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E

The vote is open for at least the next 72 hours.

[ ] +1: Accept the proposal as an official SPIP
[ ] +0
[ ] -1: I don't think this is a good idea because...

Thank you!

Best,
Uroš

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org


Re: [VOTE] SPIP: Add the DECFLOAT data type

Posted by Dongjoon Hyun <do...@apache.org>.
-1 for the AS-IS SPIP due to the lack of pure Java implementation as described in `Appendix E. Alternatives considered` section, Item 6. Since this is a new data type, we need a safe fallback option to survive from any future issues from 3rd-party libraries.

Although there are another concerns in the details (like Performance, Parquet, Arrow), the above is the most blocking factor to me to block this vote.

In general, I'm not sure if this SPIP (and its decision) is ready to vote.

Sincerely,
Dongjoon.

On 2026/08/25 11:18:58 Uroš Bojanić wrote:
> Hi all,
> 
> Discussion regarding DECFLOAT data type has settled, so I'm calling a vote on the SPIP "Add the DECFLOAT data type". The SPIP proposes to add a new Spark SQL data type: DECFLOAT (IEEE 754 decimal64 / decimal128), for base-10 floating-point decimals with per-value exponents. The SPIP document has been updated along the way to address the feedback raised in the doc & discussion thread.
> 
> DISCUSS thread: https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm
> Spark JIRA ID: https://issues.apache.org/jira/browse/SPARK-58820
> SPIP document: https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E
> 
> The vote is open for at least the next 72 hours.
> 
> [ ] +1: Accept the proposal as an official SPIP
> [ ] +0
> [ ] -1: I don't think this is a good idea because...
> 
> Thank you!
> 
> Best,
> Uroš
> 
> ---------------------------------------------------------------------
> To unsubscribe e-mail: dev-unsubscribe@spark.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org


Re: [VOTE] SPIP: Add the DECFLOAT data type

Posted by Uroš Bojanić <ur...@apache.org>.
Hi again, Stefan, Serge, Shrirang, Russell, Ian, Dongjoon, and Thomas,

Please see the latest reply on the thread [DISCUSS] SPIP: Add the DECFLOAT data type (https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm).

In short, we agree to move away from the initial JNI / libbid proposal. The new proposal is to use a custom Java native IEEE 754 compliant port.

Please refer to the updated SPIP document for additional details: https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E.

Here is a brief TL;DR:

- DECFLOAT should expose +/-Inf and NaN to allow exception free data processing without separate need for try_* operators collapsing all exceptions NULL or special casing open brackets.
- Python, a priority Spark consumer, is IEEE 754 compatible. Friction free conversion of Python to/from Spark's runtime is important to Spark's ecosystem.
- Similarly it is important to Spark's ecosystem to enable, rather than hinder other projects it is related to, such as Velox, Comet, or Parquet. None of which can rely on BigDecimal (which is Java only).
- Intel's IEEE 754's library is BSD-3-Clause licensed, giving full access to Spark to port (SPARK-59111), optimize, validate, and extend the implementation in Java. Spark's eco system is empowered to do the same. The inverse is not true. GPLv2 with the Classpath Exception does not permit frictionless ports, easy optimization and extension within our ecosystem.
- Agreeing that NaN and +/-Inf are necessary, implies reliance on BigDecimal becomes risky as it requires emulation.
- IEEE 754 provides a clean, well defined, and easily defended contract across the entire runtime and storage ecosystem.
- Such a contract becomes even more important as there are efforts in Iceberg and Delta to support expressions such as CHECK constraints and GENERATED columns. Rallying around a standard increases interoperability in the data lake.
- Spark and its users have experienced the pain of relying on implied dependencies out of its control: Unexpected ICU changes, and obscure rules for Decimal conversion to String come to mind. The latter being BigDecimal specific.
- The proposed IEEE 754 port is already faster (more performant) than BigDecimal across most operations, proving its potential.

In particular, please refer to the tab "The case for IEEE 754" which includes the technical justification for conforming to the language-neutral IEEE 754 decimal-floating contract: https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E/edit?tab=t.g49bu2698eoe.

On another note, we invite the Arrow community (cc: Ian Cook <ia...@apache.org>) to discuss more about interoperability of the new DECFLOAT data type across Arrow. We are open to collaborate and engage on any details!

Best,
Uroš

On 2026/08/25 11:18:58 Uroš Bojanić wrote:
> Hi all,
> 
> Discussion regarding DECFLOAT data type has settled, so I'm calling a vote on the SPIP "Add the DECFLOAT data type". The SPIP proposes to add a new Spark SQL data type: DECFLOAT (IEEE 754 decimal64 / decimal128), for base-10 floating-point decimals with per-value exponents. The SPIP document has been updated along the way to address the feedback raised in the doc & discussion thread.
> 
> DISCUSS thread: https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm
> Spark JIRA ID: https://issues.apache.org/jira/browse/SPARK-58820
> SPIP document: https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E
> 
> The vote is open for at least the next 72 hours.
> 
> [ ] +1: Accept the proposal as an official SPIP
> [ ] +0
> [ ] -1: I don't think this is a good idea because...
> 
> Thank you!
> 
> Best,
> Uroš
> 
> ---------------------------------------------------------------------
> To unsubscribe e-mail: dev-unsubscribe@spark.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org


Re: [VOTE] SPIP: Add the DECFLOAT data type

Posted by Uroš Bojanić <ur...@apache.org>.
Hi all,

Thank you for voting and commenting on the SPIP to add the DECFLOAT type.

The current vote hasn't reached the bar for the SPIP to pass, so I'm closing it now.

However, please note that this isn't the end of the proposal itself. We will iterate on the SPIP doc (https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E) and come up with an updated proposal.

Also, the [DISCUSS] thread (https://lists.apache.org/thread/219s1xmm03xdc5rt86qn7zhxd544l0mw) will remain open for any additional feedback, and continue to serve the right place for substantive concerns about this SPIP.

Best,
Uroš

On 2026/08/25 11:18:58 Uroš Bojanić wrote:
> Hi all,
> 
> Discussion regarding DECFLOAT data type has settled, so I'm calling a vote on the SPIP "Add the DECFLOAT data type". The SPIP proposes to add a new Spark SQL data type: DECFLOAT (IEEE 754 decimal64 / decimal128), for base-10 floating-point decimals with per-value exponents. The SPIP document has been updated along the way to address the feedback raised in the doc & discussion thread.
> 
> DISCUSS thread: https://lists.apache.org/thread/wyfnsj45s3cn95thrgw4oho74zbcc5vm
> Spark JIRA ID: https://issues.apache.org/jira/browse/SPARK-58820
> SPIP document: https://docs.google.com/document/d/1qnLXm0ldHSwPSJs_Q5SzGyyTKMMEqeX5rm8Fh4rvV3E
> 
> The vote is open for at least the next 72 hours.
> 
> [ ] +1: Accept the proposal as an official SPIP
> [ ] +0
> [ ] -1: I don't think this is a good idea because...
> 
> Thank you!
> 
> Best,
> Uroš
> 
> ---------------------------------------------------------------------
> To unsubscribe e-mail: dev-unsubscribe@spark.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe e-mail: dev-unsubscribe@spark.apache.org