spark-instrumented-optimizer/common
Dongjoon Hyun a5ff9221fc [SPARK-28308][CORE] CalendarInterval sub-second part should be padded before parsing
## What changes were proposed in this pull request?

The sub-second part of the interval should be padded before parsing. Currently, Spark gives a correct value only when there is 9 digits below `.`.
```
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
```

## How was this patch tested?

Pass the Jenkins with the fixed test cases.

Closes #25079 from dongjoon-hyun/SPARK-28308.

Authored-by: Dongjoon Hyun <dhyun@apple.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
2019-07-08 19:40:41 -07:00
..
kvstore [SPARK-27726][CORE] Fix performance of ElementTrackingStore deletes when using InMemoryStore under high loads 2019-05-21 10:22:21 -07:00
network-common [SPARK-28261][CORE] Fix client reuse test 2019-07-08 11:10:03 -07:00
network-shuffle [SPARK-28160][CORE] Fix a bug that callback function may hang when unchecked exception missed 2019-06-30 15:14:41 -05:00
network-yarn [SPARK-27773][FOLLOW-UP] Fix Checkstyle failure 2019-05-31 09:30:17 -07:00
sketch [SPARK-25956] Make Scala 2.12 as default Scala version in Spark 3.0 2018-11-14 16:22:23 -08:00
tags [SPARK-26026][BUILD] Published Scaladoc jars missing from Maven Central 2018-11-19 08:06:33 -06:00
unsafe [SPARK-28308][CORE] CalendarInterval sub-second part should be padded before parsing 2019-07-08 19:40:41 -07:00