Skip to content

Feature: more KeyValueGroupedDataset wrapper functions #81

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

Merged

Conversation

Jolanrensen
Copy link
Collaborator

Added the last missing function wrappers for KeyValueGroupedDataset and cogroup() (all those shown as Java-specific) including some helper functions for GroupState like getOrNull() and delegation options for state.

Tests are included!

…p including some helper functions for GroupState.

added tests
@asm0dey
Copy link
Contributor

asm0dey commented Apr 26, 2021

Please, fix tests and I'll merge it! Thank you for contribution!


mappedWithState.count() shouldBe 2

val flatMappedWithState = groupedDataset.mapGroupsWithState { key, values, state: GroupState<Int> ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't these be moved to separate tests?

@asm0dey
Copy link
Contributor

asm0dey commented Apr 26, 2021

Looks like they're conflicted again…

@asm0dey asm0dey merged commit 79edbfb into Kotlin:master Apr 26, 2021
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