tisonkun opened a new issue, #368:
URL: https://github.com/apache/datasketches-rust/issues/368
## Context
As `datasketches` progresses toward `0.8.0` and the `1.0` roadmap (#127),
several cross-sketch API inconsistencies remain around construction
conventions, `Default` completeness, inspector getter names, `&mut self` read
requirements, and overflow/validation return types.
Note that #266 (resolved by PR #295 and documented in `CONTRIBUTING.md`
under "Query semantics") **already settled** the quantile query return-type
contract: queries return `Option<T>` when only emptiness can cause absence (for
example `KllSketch::rank` and `ReqSketch::rank`) and `Result<Option<T>, Error>`
when argument validation can also fail (such as `TDigest::rank(f64)` or
`quantile`). This tracking issue intentionally preserves that settled decision
and focuses on the remaining contracts below.
## Tracked Sub-Issues
| Issue | Area |
Semver Impact | Primary Modules / Files
|
| ----- | ---------------------------------------------------------- |
------------------------ |
---------------------------------------------------------------------------------
|
| #363 | KLL `merge` compatibility check order | Patch
(bug) | `datasketches/src/kll/sketch.rs`
|
| #364 | `Default` completeness & builder vs `new` rules | Minor
/ Breaking | `datasketches/src/hll/`,
`datasketches/src/thetafamily/tuple/`, `CONTRIBUTING.md` |
| #365 | Count, weight, retained, and extrema getter naming |
Breaking (0.8.0–1.0) |
`datasketches/src/{frequencies,tdigest,kll,req,countmin}/`, `CONTRIBUTING.md`
|
| #366 | `TDigestMut` `&self` queries & `serialize` |
Widening (`&mut` -> `&`) | `datasketches/src/tdigest/sketch.rs`,
`benchmarks/tdigest/` |
| #367 | `merge`, `decay`, and weighted `update` overflow contracts |
Breaking (0.8.0–1.0) | `datasketches/src/{frequencies,tdigest,countmin}/`,
`CONTRIBUTING.md` |
## Cross-Cutting Documentation Goals
- Consolidate crate-wide API design guidelines in `CONTRIBUTING.md`
alongside "Query semantics":
- Constructor vs `*Builder` criteria and when `Default` should be
implemented (#364).
- Canonical getter names (`num_retained`, `n` vs `total_weight`, extrema
naming) (#365).
- Panic vs `Result<(), Error>` boundaries and no-mutation-on-error
invariants for `merge`, `decay`, and weighted updates (#367).
- Coordinate breaking API changes cleanly into the `0.8.0`–`1.0` release
milestones under #127.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]