Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4641

Decimal128/BigDecimal interoperability

    • Type: Icon: Epic Epic
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.1
    • Affects Version/s: None
    • Component/s: Attributes
    • None
    • Done
    • BigDecimal/Decimal128 interoperability
    • 2
    • 2
    • 2
    • 100
    • Hide

      Engineers: Neil Shweky, Dmitry Rybakov

      2022-01-11: Setting Target date to 2022-01-21

      • Neil made short work of this substantial project and it is nearly complete. This is currently pending a release of our BSON package, for which the team is discussing logistics.
      • There may be some additional minor testing and fixes to address after updating the underlying package, but we don't anticipate much more work - setting end date to next friday.
      Show
      Engineers: Neil Shweky, Dmitry Rybakov 2022-01-11: Setting Target date to 2022-01-21 Neil made short work of this substantial project and it is nearly complete. This is currently pending a release of our BSON package, for which the team is discussing logistics. There may be some additional minor testing and fixes to address after updating the underlying package, but we don't anticipate much more work - setting end date to next friday.
    • Fully Compatible

      Both Ruby and MongoDB offer high precision decimal types: BigDecimal and Decimal128, respectively. Currently BigDecimal is serialized as a string rather than Decimal128, because the types are not 100% identical. This epic encompasses figuring out how to better integrate BigDecimal and Decimal128, and implementing said integration.

      To be decided:

      • Should there be separate types exposed by Mongoid for BigDecimal-serialized-as-string and BigDecimal-serialized-as-Decimal128?
      • Should there be a global config setting to specify that BigDecimals should be serialized as Decimal128s or strings?
      • Should some of the support be provided by the driver rather than entirely by Mongoid?

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 weeks, 1 day