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

[C++] Unify BasicDecimal128 and BasicDecimal256 classes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • None
    • None
    • C++
    • None

    Description

      BasicDecimal128 uses two dedicated int64 (higher, lower) to store the value. It's possible to use std::array<uint64, 2> to store the value, just like BasicDecimal256 does, and to unify the two classes.
      As decimal operations are quite expensive, guess this indirection won't cause performance loss.

      Attachments

        Issue Links

          Activity

            People

              yibocai#1 yibocai#1
              yibocai#1 yibocai#1
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: