estuary / flow

🌊 Continuously synchronize the systems where your data lives, to the systems where you _want_ it to live, with Estuary Flow. 🌊
https://estuary.dev
Other
530 stars 45 forks source link

crates/doc: support arbitrary precision with `sum` annotation #1477

Closed jgraettinger closed 1 month ago

jgraettinger commented 1 month ago

Refactor checked_add out of json::Number, and add doc::ParsedNumber which additionally supports BigDecimal representations parsed from JSON string types.

Update the sum reducer to know about these and handle them.

Workflow steps:

(How does one use this feature, and how has it changed)

Documentation links affected:

(list any documentation links that you created, or existing ones that you've identified as needing updates, along with a brief description)

Notes for reviewers:

(anything that might help someone review this PR)


This change is Reviewable