Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13668

Implement Number(n) and Decimal native types

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha3
    • Component/s: None
    • Labels:
    • Ignite Flags:
      Docs Required, Release Notes Required

      Description

      Let's extend native support for Numeric types.

      • Number( n ) is an n-bytes two-complement integer signed value encoded in the varlong style
        (so that Number(4) can be mapped to integer and Number(8) can be mapped to long during (de)serialization).
      • Larger numbers can be represented as BigInteger.
      • The Number( n ) is a varlen type, so it will take two additional bytes in the varlen table, so types smaller than Number(4) are better represented by byte and short and int types as their fixlen encoding takes exactly 1, 2, 4 bytes respectively.
      • Decimal is a direct mapping to BigDecimal value.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                agoncharuk Alexey Goncharuk
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 168h
                  168h
                  Remaining:
                  Remaining Estimate - 168h
                  168h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified