You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/02/03 17:34:39 UTC

[jira] [Commented] (ASTERIXDB-1281) Generic Interval Representation in ADM and AQL (phase 1)

    [ https://issues.apache.org/jira/browse/ASTERIXDB-1281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15130643#comment-15130643 ] 

ASF subversion and git services commented on ASTERIXDB-1281:
------------------------------------------------------------

Commit d434b50f8881cd32b5e95e93a7a856f8bff8509e in incubator-asterixdb's branch refs/heads/master from [~prestonc]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-asterixdb.git;h=d434b50 ]

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.

Change-Id: I009c71b7a445d141e228ba15d56d0b6cf3c8a3f5
Reviewed-on: https://asterix-gerrit.ics.uci.edu/602
Tested-by: Jenkins <je...@fulliautomatix.ics.uci.edu>
Reviewed-by: Till Westmann <ti...@apache.org>


> Generic Interval Representation in ADM and AQL (phase 1)
> --------------------------------------------------------
>
>                 Key: ASTERIXDB-1281
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1281
>             Project: Apache AsterixDB
>          Issue Type: Improvement
>          Components: AsterixDB
>            Reporter: Preston Carman
>            Assignee: Preston Carman
>
> The first phase of Generic Interval Representation in ADM and AQL will focus on areas seen by a user. The new format will also be open to supporting other interval types, although currently will only support date, time and datetime. Here are a few of the action items:
>  - ADM printer and parser changed to support the new generic style format
>     - interval(date("2012-01-01”), date(”2013-04-01”))
>  - Add an "interval" AQL constructor to support the above format
>  - Alter interval byte structure to support any interval type
>    - byte tag, T start, T end
>    - where T is currently only date, time and datetime



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)