You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jolan Rensen (Jira)" <ji...@apache.org> on 2022/02/24 15:27:00 UTC

[jira] [Created] (SPARK-38317) Encoding of java.time.Period always results in "INTERVAL '0-0' YEAR TO MONTH"

Jolan Rensen created SPARK-38317:
------------------------------------

             Summary: Encoding of java.time.Period always results in "INTERVAL '0-0' YEAR TO MONTH"
                 Key: SPARK-38317
                 URL: https://issues.apache.org/jira/browse/SPARK-38317
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 3.2.1, 3.2.0
            Reporter: Jolan Rensen


```val dates = Seq(
    Period.ZERO,
    Period.ofWeeks(2),
).toDS()
dates.show(false)```

Results in:
```
+----------------------------+
|value                       |
+----------------------------+
|INTERVAL '0-0' YEAR TO MONTH|
|INTERVAL '0-0' YEAR TO MONTH|
+----------------------------+
```



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org