Skip to content

Conversation

@davidchuyaya
Copy link
Collaborator

enumerate_keyed, sort_keyed, unique_keyed

@davidchuyaya
Copy link
Collaborator Author

Not sure why ubuntu is failing

@shadaj
Copy link
Member

shadaj commented Feb 11, 2026

Look like a flake, re-running now.

#context.state_ref_unchecked(#counterdata_ident)
}.borrow_mut();

let counter = map.entry(::std::clone::Clone::clone(&k))
Copy link
Member

Choose a reason for hiding this comment

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

This incurs an unnecessary Clone, should not require that.

Copy link
Member

Choose a reason for hiding this comment

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

On second thought. You'll need Clone but this can be optimized to only clone if the key is not already in the map. This means you'll also need to add the where K: Clone clause on the corresponding Hydro API.

/// # }));
/// # }
/// ```
pub fn enumerate(self) -> KeyedStream<K, (usize, V), L, B, TotalOrder, ExactlyOnce> {
Copy link
Member

Choose a reason for hiding this comment

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

This should only be available on TotalOrder streams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants