Skip to content

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