Skip to content

Conversation

koperagen
Copy link
Collaborator

Without this change, code would have to look like:

val df = dataFrameOf("list" to columnOf(listOf(1, 2, 3)))
            .gather { "list"<List<Int>>() }
            .explodeLists()
            .cast<Int>()
            .mapValues { listOf(it) }
            .into("key", "value")

Or even worse, without the cast it will be a Classcast exception in .mapValues { listOf(it) }
With this change, at least for simple case where all selected columns are List, cast won't be needed.

@koperagen koperagen added this to the 1.0.0-Beta3 milestone Jun 20, 2025
@koperagen koperagen requested a review from Jolanrensen June 20, 2025 15:25
@koperagen koperagen self-assigned this Jun 20, 2025
@koperagen koperagen added the enhancement New feature or request label Jun 20, 2025
@koperagen koperagen merged commit c0e44e6 into master Jun 23, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants