spark-instrumented-optimizer/common
Kent Yao 4806cc5bd1 [SPARK-30547][SQL] Add unstable annotation to the CalendarInterval class
### What changes were proposed in this pull request?

`CalendarInterval` is maintained as a private class but might be used in a public way by users
e.g.

```scala
scala> spark.udf.register("getIntervalMonth", (_:org.apache.spark.unsafe.types.CalendarInterval).months)

scala> sql("select interval 2 month 1 day a").selectExpr("getIntervalMonth(a)").show
+-------------------+
|getIntervalMonth(a)|
+-------------------+
|                  2|
+-------------------+
```

And it exists since 1.5.0, now we go to the 3.x era,may be it's time to make it public

### Why are the changes needed?

make the interval more future-proofing

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

doc change

### How was this patch tested?

add ut.

Closes #27258 from yaooqinn/SPARK-30547.

Authored-by: Kent Yao <yaooqinn@hotmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
2020-01-20 12:17:37 +08:00
..
kvstore [SPARK-30272][SQL][CORE] Remove usage of Guava that breaks in 27; replace with workalikes 2019-12-20 08:55:04 -06:00
network-common [SPARK-27868][CORE][FOLLOWUP] Recover the default value to -1 again 2020-01-17 10:43:47 -08:00
network-shuffle [SPARK-30290][CORE] Count for merged block when fetching continuous blocks in batch 2019-12-25 18:57:02 +08:00
network-yarn [SPARK-30272][SQL][CORE] Remove usage of Guava that breaks in 27; replace with workalikes 2019-12-20 08:55:04 -06:00
sketch [INFRA] Reverts commit 56dcd79 and c216ef1 2019-12-16 19:57:44 -07:00
tags [INFRA] Reverts commit 56dcd79 and c216ef1 2019-12-16 19:57:44 -07:00
unsafe [SPARK-30547][SQL] Add unstable annotation to the CalendarInterval class 2020-01-20 12:17:37 +08:00