You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@datasketches.apache.org by "tisonkun (via GitHub)" <gi...@apache.org> on 2026/08/28 15:14:11 UTC
[PR] refactor(req): remove ReqUnion (datasketches-rust)
tisonkun opened a new pull request, #242:
URL: https://github.com/apache/datasketches-rust/pull/242
## Summary
- remove `ReqUnion`, which only delegated to an inner `ReqSketch`
- keep `ReqSketch::merge` as the REQ aggregation API and add a usage example
- update the README and unreleased changelog to describe merging without a separate union type
## Rationale
The Java, C++, Python, and Go REQ implementations expose aggregation directly through the sketch's `merge` method. Unlike CPC, HLL, and Theta unions, `ReqUnion` maintained no distinct accumulator state or configuration-reconciliation behavior, and `to_sketch` cloned the wrapped sketch.
REQ has not been included in a release yet, so the discarded intermediate API does not require a migration entry. This change intentionally leaves the existing `ReqSketch::merge` compatibility rules, including mixed-`k` behavior, unchanged.
## Testing
- `cargo x check`
- `cargo x test`
- `cargo x lint`
Closes #217.
--
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: dev-unsubscribe@datasketches.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org
Re: [PR] refactor(req): remove ReqUnion (datasketches-rust)
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on PR #242:
URL: https://github.com/apache/datasketches-rust/pull/242#issuecomment-5459011520
... to be clear, a merge is not a final decision. You can always do review after commits and revert a commit with a reason.
--
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: dev-unsubscribe@datasketches.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org
Re: [PR] refactor(req): remove ReqUnion (datasketches-rust)
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun merged PR #242:
URL: https://github.com/apache/datasketches-rust/pull/242
--
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: dev-unsubscribe@datasketches.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org
Re: [PR] refactor(req): remove ReqUnion (datasketches-rust)
Posted by "tisonkun (via GitHub)" <gi...@apache.org>.
tisonkun commented on PR #242:
URL: https://github.com/apache/datasketches-rust/pull/242#issuecomment-5454337408
@pmcgleenon Seems ReqUnion is almost identical to continuous calls to `ReqSketch::merge`. I tend to reduce concepts from users and add them only if needed or if concrete use cases occur.
--
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: dev-unsubscribe@datasketches.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@datasketches.apache.org
For additional commands, e-mail: dev-help@datasketches.apache.org