Skip to content

Commit

Permalink
apacheGH-43956: [Format] Allow Decimal32/Decimal64 in format (apache#…
Browse files Browse the repository at this point in the history
…43976)

Widening the Decimal128/256 type to allow for bitwidths of 32 and 64
allows for more interoperability with other libraries and utilities
which already support these types. This provides even more opportunities
for zero-copy interactions between things such as libcudf and various
databases.

<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->

Updating the documentation in Schema.fbs to explicitly state that 32-bit
and 64-bit is now allowed for bitwidths of Decimal types. This is the
only area in the the spec that mentions the allowed decimal bitwidths.
* GitHub Issue: apache#43956

---------

Co-authored-by: Antoine Pitrou <[email protected]>
  • Loading branch information
zeroshade and pitrou committed Sep 30, 2024
1 parent 3256e14 commit 9cfcb05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/source/format/Versioning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,8 @@ Version 1.4
* Added :ref:`listview-layout` and the associated ListView and LargeListView
types.
* Added :ref:`variadic-buffers`.

Version 1.5
-----------

* Expanded Decimal type bit widths to allow 32-bit and 64-bit types.
2 changes: 1 addition & 1 deletion format/Schema.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/// Version 1.3 - Add Run-End Encoded.
/// Version 1.4 - Add BinaryView, Utf8View, variadicBufferCounts, ListView, and
/// LargeListView.
/// Version 1.5 - Add Decimal32 and Decimal64
/// Version 1.5 - Add 32-bit and 64-bit as allowed bit widths for Decimal

namespace org.apache.arrow.flatbuf;

Expand Down

0 comments on commit 9cfcb05

Please sign in to comment.