spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongjoon Hyun (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-28308) CalendarInterval sub-second part should be padded before parsing
Date Mon, 08 Jul 2019 23:17:00 GMT
Dongjoon Hyun created SPARK-28308:
-------------------------------------

             Summary: 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.4.3, 2.3.3, 2.2.3, 2.1.3, 2.0.2
            Reporter: Dongjoon Hyun


{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


Mime
View raw message