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

support fanout combinators in group by #98

Merged
merged 1 commit into from
May 10, 2020

Conversation

drunkirishcoder
Copy link
Contributor

Description

Add support for using fanout combinators in a group_by sub-batch. group_by no longer assumes that the sub-batch will return a single packet for every input packet. This fixes #25.

Type of change

  • Bug fix

Checklist

  • Associated tests

@@ -83,6 +83,7 @@ where
bridge: Bridge<B::Item>,
groups: HashMap<D, Box<dyn Batch<Item = B::Item>>>,
catchall: Box<dyn Batch<Item = B::Item>>,
fanouts: VecDeque<Disposition<B::Item>>,
Copy link
Member

Choose a reason for hiding this comment

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

had the q about vecdeque here, but preserving order here is good (and for a limited number of fanouts, the data structure is pretty optimized).

@drunkirishcoder drunkirishcoder merged commit 08c5290 into master May 10, 2020
@drunkirishcoder drunkirishcoder deleted the djin/fix-groupby_fanout branch May 10, 2020 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Segfault when using replace combinator within a group_by combinator
2 participants