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 66dc40e commit 31f56d8Copy full SHA for 31f56d8
kotlin-spark-api/3.2/src/test/kotlin/org/jetbrains/kotlinx/spark/api/ApiTest.kt
@@ -371,9 +371,7 @@ class ApiTest : ShouldSpec({
371
dataset.collectAsList().let {
372
it[0] shouldBe Period.ZERO
373
374
- // TODO this is also broken in Scala. It reports a Period of 0 instead of 2 days
375
- // https://issues.apache.org/jira/browse/SPARK-38317
376
-// it[1] shouldBe Period.ofDays(2)
+ // NOTE Spark truncates java.time.Period to months.
377
it[1] shouldBe Period.ofDays(0)
378
}
379
@@ -804,4 +802,4 @@ data class ComplexEnumDataClass(
804
802
data class NullFieldAbleDataClass(
805
803
val optionList: List<Int>?,
806
val optionMap: Map<String, Int>?,
807
-)
+)
0 commit comments