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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to