spark-instrumented-optimizer/sql/core/src/test
Wenchen Fan 0ba98c04c7 [SPARK-8753][SQL] Create an IntervalType data type
We need a new data type to represent time intervals. Because we can't determine how many days in a month, so we need 2 values for interval: a int `months`, a long `microseconds`.

The interval literal syntax looks like:
`interval 3 years -4 month 4 weeks 3 second`

Because we use number of 100ns as value of `TimestampType`, so it may not makes sense to support nano second unit.

Author: Wenchen Fan <cloud0fan@outlook.com>

Closes #7226 from cloud-fan/interval and squashes the following commits:

632062d [Wenchen Fan] address comments
ac348c3 [Wenchen Fan] use case class
0342d2e [Wenchen Fan] use array byte
df9256c [Wenchen Fan] fix style
fd6f18a [Wenchen Fan] address comments
1856af3 [Wenchen Fan] support interval type
2015-07-08 10:51:32 -07:00
..
java/test/org/apache/spark/sql [SPARK-7654][SQL] Move JDBC into DataFrame's reader/writer interface. 2015-05-16 22:01:53 -07:00
resources [SPARK-7743] [SQL] Parquet 1.7 2015-06-04 11:32:03 -07:00
scala/org/apache/spark/sql [SPARK-8753][SQL] Create an IntervalType data type 2015-07-08 10:51:32 -07:00