tajo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DaeMyung Kang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAJO-437) Timestamp literal support
Date Sun, 22 Dec 2013 08:30:50 GMT

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

DaeMyung Kang commented on TAJO-437:
------------------------------------

[~hyunsik] and second, serialize function in tajo-common/src/main/java/org/apache/tajo/json/DatumAdapter.java

I think you should add break statement after 

case DATE:
jsonObj.addProperty("value", src.asInt4());
break; <--- need to add this;


> Timestamp literal support
> -------------------------
>
>                 Key: TAJO-437
>                 URL: https://issues.apache.org/jira/browse/TAJO-437
>             Project: Tajo
>          Issue Type: Sub-task
>          Components: operator/expression, parser
>            Reporter: Hyunsik Choi
>            Assignee: Hyunsik Choi
>            Priority: Minor
>              Labels: newbie
>             Fix For: 0.8-incubating
>
>         Attachments: TAJO-437.patch
>
>
> Timestamp literal represents timestamp constant. It has the following bnf grammar.
> {code}
> <timestamp literal>    ::=   TIMESTAMP <timestamp string>
> <timestamp string>    ::=   <quote> <unquoted timestamp string> <quote>
> <unquoted timestamp string>    ::=   <unquoted date string> <space>
<unquoted time string>
> <unquoted date string>    ::=   <date value>
> <unquoted time string>    ::=   <time value> [ <time zone interval>
]
> <date value>    ::=   <years value> <minus sign> <months value>
<minus sign> <days value>
> <time value>    ::=   <hours value> <colon> <minutes value> <colon>
<seconds value>
> <time zone interval>    ::=   <sign> <hours value> <colon> <minutes
value>
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message