spark-instrumented-optimizer/sql/hive-thriftserver
Wenchen Fan 9b61f90987 [SPARK-29761][SQL] do not output leading 'interval' in CalendarInterval.toString
### What changes were proposed in this pull request?

remove the leading "interval" in `CalendarInterval.toString`.

### Why are the changes needed?

Although it's allowed to have "interval" prefix when casting string to int, it's not recommended.

This is also consistent with pgsql:
```
cloud0fan=# select interval '1' day;
 interval
----------
 1 day
(1 row)
```

### Does this PR introduce any user-facing change?

yes, when display a dataframe with interval type column, the result is different.

### How was this patch tested?

updated tests.

Closes #26401 from cloud-fan/interval.

Authored-by: Wenchen Fan <wenchen@databricks.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
2019-11-07 15:44:50 +08:00
..
src [SPARK-29761][SQL] do not output leading 'interval' in CalendarInterval.toString 2019-11-07 15:44:50 +08:00
v1.2.1 [SPARK-29742][BUILD] Update checkstyle plugin's check dir scope 2019-11-04 09:08:47 -08:00
v2.3.5 [SPARK-29742][BUILD] Update checkstyle plugin's check dir scope 2019-11-04 09:08:47 -08:00
pom.xml [SPARK-29725][SQL][TESTS] Add ThriftServerPageSuite 2019-11-06 20:59:45 +09:00