forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-8914: [C++] Keep BasicDecimal128 in native-endian order
This PR changes to keep BasicDecimal128 in native-endian order instead of little-endian order. There are two rationales. 1. In 2017, Decimal128 is defined as [little-endian order](apache@b2596f6). Now, an endianness relies on [this flag](https://github.com/apache/arrow/blob/master/docs/source/format/Columnar.rst#byte-order-endianness). 2. Generated code by Gandiva processes a computation with native-endian. The generated code uses `int128` generated by `ToBytes` for `Decimal128`. Closes apache#7256 from kiszk/ARROW-8914 Authored-by: Kazuaki Ishizaki <[email protected]> Signed-off-by: François Saint-Jacques <[email protected]>
- Loading branch information
1 parent
75315f5
commit 3c1bc81
Showing
4 changed files
with
37 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters