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

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

     [ https://issues.apache.org/jira/browse/SPARK-38317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-38317.
----------------------------------
    Resolution: Not A Problem

> 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: SQL
>    Affects Versions: 3.2.0, 3.2.1
>            Reporter: Jolan Rensen
>            Priority: Major
>
> {code}
> val dates = Seq(
>     Period.ZERO,
>     Period.ofWeeks(2),
> ).toDS()
> dates.show(false)
> {code}
> Results in:
> {code}
> +----------------------------+
> |value                       |
> +----------------------------+
> |INTERVAL '0-0' YEAR TO MONTH|
> |INTERVAL '0-0' YEAR TO MONTH|
> +----------------------------+
> {code}



--
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