Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2024

Conversation

jgraettinger
Copy link
Member

@jgraettinger jgraettinger commented May 25, 2024

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

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.
@jgraettinger jgraettinger force-pushed the johnny/arbitrary-precision branch from 25f2670 to 8fb6aa7 Compare May 28, 2024 21:53
@jgraettinger jgraettinger marked this pull request as ready for review May 28, 2024 21:55
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jgraettinger jgraettinger merged commit cb82879 into master May 29, 2024
5 checks passed
@jgraettinger jgraettinger deleted the johnny/arbitrary-precision branch May 29, 2024 16:09
github-actions bot pushed a commit to estuary/homebrew-flowctl that referenced this pull request May 31, 2024
## What's Changed

* `sum` annotation now supports arbitrary precision using string-encoded numerics
* Add experimental `flowctl raw stats` sub-command
* Various minor JSON Schema handling improvements.
* Switch to simd-json for fast JSON parsing and transcoding.

### Filtered PRs impacting `flowctl`:

* crates/json: don't validate strings with underscores as integers or numbers by @williamhbaker in estuary/flow#1364
* Update `runtime::container::start()` to take a new `allow_local` flag by @jshearer in estuary/flow#1361
* json: fix ordering of integers greater than i64::MAX by @psFried in estuary/flow#1367
* validation: fix bucket name validation for GCS and Azure by @psFried in estuary/flow#1370
* thread through `--allow-local` argument when running locally by @psFried in estuary/flow#1374
* validation: allow unsatisfiable constraints on excluded fields by @psFried in estuary/flow#1375
* update a number of dependencies, including RocksDB (to 8.10) by @jgraettinger in estuary/flow#1389
* connector-init: set connector_type on protocol check Spec by @jgraettinger in estuary/flow#1400
* models/journals: region configuration for S3 storage mappings by @williamhbaker in estuary/flow#1410
* improve schema validation errors by including metadata about the collection that failed by @jgraettinger in estuary/flow#1408
* flowctl: resurrect stats subcommand under raw by @psFried in estuary/flow#1432
* make: codesign binaries on mac by @mdibaiee in estuary/flow#1436
* simd-doc, gazette, avro, and dekaf crates by @jgraettinger in estuary/flow#1448
* flowctl(preview): multiple bindings may read from one collection by @mdibaiee in estuary/flow#1466
* crates/doc: support arbitrary precision with `sum` annotation by @jgraettinger in estuary/flow#1477
* crates/doc: relax `sum` inspection to allow numeric strings by @jgraettinger in estuary/flow#1481

**Full Changelog**: estuary/flow@v0.3.12...v0.3.13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants