asterixdb-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yingyi Bu (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (ASTERIXDB-1600) Support for date and string arthimetic
Date Mon, 22 Aug 2016 16:04:20 GMT

     [ https://issues.apache.org/jira/browse/ASTERIXDB-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Yingyi Bu reassigned ASTERIXDB-1600:
------------------------------------

    Assignee: Yingyi Bu

> Support for date and string arthimetic
> --------------------------------------
>
>                 Key: ASTERIXDB-1600
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1600
>             Project: Apache AsterixDB
>          Issue Type: Improvement
>            Reporter: Vignesh Raghunathan
>            Assignee: Yingyi Bu
>
> {code}
> drop dataverse sampdb if exists;
> create dataverse sampdb;
> use sampdb;
> drop dataset samptable if exists;
> drop type samptabletype if exists;
> create type samptabletype as closed {
>   dt: date
> };
> create type samptabletype2 as closed {
>   id: int64,
>   firstname: string,
>   lastname: string
> };
> create dataset samptable(samptabletype) primary key dt;
> create dataset samptable2(samptabletype2) primary key id;
> select *
> from samptable s1, samptable s2
> where s1.dt > s2.dt + 5;
> select firstname + " " + lastname as fullname
> from samptable2
> {code}
> The above queries can't be expressed in sqlpp without support for date and string type
arithmetic.



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

Mime
View raw message