Skip to content
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

added encoders 3.2 #134

Merged
merged 27 commits into from
Feb 28, 2022
Merged

added encoders 3.2 #134

merged 27 commits into from
Feb 28, 2022

Conversation

Jolanrensen
Copy link
Collaborator

Duration, Period, ByteArray (Binary, now actually working)

added tests for: Instant datatype, duration, period, binary, and others
added datatypes: ByteArray (BinaryType), CalendarInterval, Nothing (All three not yet working)

metioned: #131

WIP

Adds sc JavaSparkContext to KSparkSession
…king)

added tests for: Instant datatype, duration, period, binary, and others
added datatypes: ByteArray (BinaryType), CalendarInterval, Nothing (All three not yet working)
@Jolanrensen
Copy link
Collaborator Author

Not sure why serializing ByteArrays with knownTypes doesn't work actually... it should just work

@Jolanrensen
Copy link
Collaborator Author

okay the Period encoder seems to be broken by Spark itself. Other than that, all 3.2 stuff seems to be working and the tests actually test the contents now instead of just showing it

@Jolanrensen
Copy link
Collaborator Author

Oh right and the KotlinReflection scala file is now more readable :)

dataset.collectAsList().let {
it[0] shouldBe Period.ZERO

// TODO this is also broken in Scala. It reports a Period of 0 instead of 2 days
Copy link
Contributor

Choose a reason for hiding this comment

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

Please link relevant JIRA ticket

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

https://issues.apache.org/jira/browse/SPARK-38317 Apparently it's expected behavior, strange

Jolanrensen and others added 12 commits February 24, 2022 15:07
Added kotlin official code style prop for later
added force_orphan
…king)

added tests for: Instant datatype, duration, period, binary, and others
added datatypes: ByteArray (BinaryType), CalendarInterval, Nothing (All three not yet working)
… some refactoring. still trying to get serializing of binary to work
Jolanrensen and others added 3 commits February 28, 2022 13:01
…coders-and-data-types

# Conflicts:
#	kotlin-spark-api/3.2/src/test/kotlin/org/jetbrains/kotlinx/spark/api/ApiTest.kt
@Jolanrensen Jolanrensen merged commit 7cce12f into spark-3.2 Feb 28, 2022
@Jolanrensen Jolanrensen deleted the encoders-and-data-types branch February 28, 2022 12:54
@Jolanrensen Jolanrensen added this to the 1.1.0 milestone May 30, 2022
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