Skip to content
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

[Do not Merge] [WIP] Combine.perKeyWithBucketing: Combiner for reducing key cardinality #32831

Closed
wants to merge 1 commit into from

Conversation

arunpandianp
Copy link
Contributor

Combine.perKeyWithBucketing(childCombiner, numBuckets) applies the child
combiner to the PCollection using numberOfBuckets number of intermediate keys.

This is a POC, sending it now to share and get early feedback.

TODO: Add tests, pick better names.

Example usage

input.apply(Combine.perKeyWithBucketing(yourCombineFn, desiredNumKeys))

Combine.perKeyWithBucketing(childCombiner, numBuckets): applies the child
combiner to the PCollection using numberOfBuckets number of intermediate keys.

Example usage

```
input.apply(Combine.perKeyWithBucketing(yourCombineFn, desiredNumKeys))
```
@github-actions github-actions bot added the java label Oct 17, 2024
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.93%. Comparing base (1e27978) to head (768981a).
Report is 386 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #32831      +/-   ##
============================================
+ Coverage     57.41%   58.93%   +1.52%     
- Complexity     1475     3102    +1627     
============================================
  Files           968     1131     +163     
  Lines        154224   174643   +20419     
  Branches       1076     3330    +2254     
============================================
+ Hits          88546   102931   +14385     
- Misses        63477    68373    +4896     
- Partials       2201     3339    +1138     
Flag Coverage Δ
java 69.91% <ø> (+1.33%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arunpandianp
Copy link
Contributor Author

Closing this in favor of #33318

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant