tisonkun opened a new pull request, #373: URL: https://github.com/apache/datasketches-rust/pull/373
## Summary Converge compatibility checking, error diagnostics, and empty-input behavior across multi-sketch combination operators: - **BloomFilter**: Remove `BloomFilter::is_compatible` (the sole `is_compatible` pre-check method in the crate, redundant with `capacity()`/`num_hashes()`/`seed()` and the atomic `O(1)` check in `union`, `intersect`, and `difference`) and split internal `ensure_compatible` into distinct `InvalidArgument` diagnostics reporting expected and actual `capacity`, `num_hashes`, and `seed` values. - **CountMinSketch**: Split `CountMinSketch::merge`'s combined compatibility check into separate `num_hashes`, `num_buckets`, `seed`, and `serial_version` branches with expected and actual values so mismatches (including v1 vs v2 wire format mismatches) are immediately identifiable without exposing wire-format getters. - **ReqSketch**: Include expected and actual `RankAccuracy` modes and stream weights (`left` and `right`) in `ReqSketch::merge` error messages, matching `CpcUnion::update` and `KllSketch::merge`. - **Theta / Tuple**: Stamp empty results with the operator's `seed_hash` when the left input `a` to `ThetaANotB::compute` or `TupleANotB::compute` is empty instead of copying `a`'s unchecked `seed_hash`, inline the remaining `b`-is-empty copy path, drop the now-unused `seed_hash` field from `ThetaFamilySketchMetadata::Empty`, and align `TupleUnion::update`'s `# Errors` documentation with `ThetaUnion::update`. ## Test Plan - `cargo x lint` - `cargo x check` & `cargo +1.86.0 check` - `cargo x test` -- 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]
