Closed Jolanrensen closed 3 years ago
Now it's time to update this PR: remove obsolete functions and fix conflicts
@asm0dey Alright! done
@asm0dey If you have time to look at it :) The main branch currently references selectTyped()
in the readme, but this pull request is not yet merged.
As discussed in the issue: https://github.com/JetBrains/kotlin-spark-api/issues/85 This adds the
selectTyped()
functions forDataset
s. The results are mapped toPair
s,Triple
s orArity
s for the respective amount of arguments given.The creation of
TypedColumn
s is made a lot easier using a different pull request: https://github.com/JetBrains/kotlin-spark-api/pull/87, which I recommend to merge first, so that the temporarycol()
function in the tests here can be removed before merging :).Note that on 2.4 the
selectTyped()
function cannot return aDataset
of a data class of an array. This is an encoding limitation which I mention here https://github.com/JetBrains/kotlin-spark-api/issues/64 as well.