Skip to content

Commit 31f56d8

Browse files
committed
rebasing on spark 3.2 branch
1 parent 66dc40e commit 31f56d8

File tree

1 file changed

+2
-4
lines changed
  • kotlin-spark-api/3.2/src/test/kotlin/org/jetbrains/kotlinx/spark/api

1 file changed

+2
-4
lines changed

kotlin-spark-api/3.2/src/test/kotlin/org/jetbrains/kotlinx/spark/api/ApiTest.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,7 @@ class ApiTest : ShouldSpec({
371371
dataset.collectAsList().let {
372372
it[0] shouldBe Period.ZERO
373373

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)
374+
// NOTE Spark truncates java.time.Period to months.
377375
it[1] shouldBe Period.ofDays(0)
378376
}
379377

@@ -804,4 +802,4 @@ data class ComplexEnumDataClass(
804802
data class NullFieldAbleDataClass(
805803
val optionList: List<Int>?,
806804
val optionMap: Map<String, Int>?,
807-
)
805+
)

0 commit comments

Comments
 (0)