You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2019/07/09 06:19:00 UTC

[jira] [Resolved] (SPARK-28308) CalendarInterval sub-second part should be padded before parsing

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

Dongjoon Hyun resolved SPARK-28308.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0
                   2.4.4
                   2.3.4

> CalendarInterval sub-second part should be padded before parsing
> ----------------------------------------------------------------
>
>                 Key: SPARK-28308
>                 URL: https://issues.apache.org/jira/browse/SPARK-28308
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.0.2, 2.1.3, 2.2.3, 2.3.3, 2.4.3
>            Reporter: Dongjoon Hyun
>            Assignee: Dongjoon Hyun
>            Priority: Major
>              Labels: correctness
>             Fix For: 2.3.4, 2.4.4, 3.0.0
>
>
> {code}
> spark-sql> select interval '0 0:0:0.123456789' day to second;
> interval 123 milliseconds 456 microseconds
> spark-sql> select interval '0 0:0:0.12345678' day to second;
> interval 12 milliseconds 345 microseconds
> spark-sql> select interval '0 0:0:0.1234' day to second;
> interval 1 microseconds
> Time taken: 0.024 seconds, Fetched 1 row(s)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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