Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-11748

[C++] Ensure Decimal128 and Decimal256's fields are in native endian order

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 6.0.0
    • C++

    Description

      Currently Decimal128 and Decimal256's fields are exclusively in littleendian order, which can yield surprising results when reinterpret_cast}}ing entries of a buffer to {{Decimal128* on a bigendian platform, see https://github.com/apache/arrow/pull/9554

      These utility classes will be more useful if they are always usable from a buffer without swizzling.

      Attachments

        Issue Links

          Activity

            People

              yibocai#1 yibocai#1
              bkietz Ben Kietzman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m