ASTERIXDB-1281 - Interval format update to AQL and ADM The new interval format takes a more generic approach to representing intervals. Here is an example for a date interval:
interval(date("2012-01-01”), date(”2013-04-01”))
Note that the interval type is defined by the arguments to the interval expression. Currently only date, time, and datetime types are supported for intervals. The new format is used for ADM and AQL.
In addition to the format change, the internal byte structure of an interval has been updated. The format looks like the following:
byte tag, T start, T end (where T is a date, time or datetime type)
Note how the tag has been moved to the front. Also with the new sturcture, an interval is variable length, not fixed length as before.
Temporal update based on a merge from an old branch. Includes the following new functions: overlap-bins, get-overlapping-interval, get-interval-start-date, get-interval-start-datetime, get-interval-start-time, get-interval-end-date, get-interval-end-datetime, get-interval-end-time