We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d785e0 commit 518d1a1Copy full SHA for 518d1a1
kotlin-spark-api/3.2/src/test/kotlin/org/jetbrains/kotlinx/spark/api/ApiTest.kt
@@ -366,9 +366,7 @@ class ApiTest : ShouldSpec({
366
dataset.collectAsList().let {
367
it[0] shouldBe Period.ZERO
368
369
- // TODO this is also broken in Scala. It reports a Period of 0 instead of 2 days
370
- // https://issues.apache.org/jira/browse/SPARK-38317
371
-// it[1] shouldBe Period.ofDays(2)
+ // NOTE Spark truncates java.time.Period to months.
372
it[1] shouldBe Period.ofDays(0)
373
}
374
@@ -736,4 +734,4 @@ data class ComplexEnumDataClass(
736
734
data class NullFieldAbleDataClass(
737
735
val optionList: List<Int>?,
738
val optionMap: Map<String, Int>?
739
-)
+)
0 commit comments