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

Hudson commented on TAJO-1386:
------------------------------

FAILURE: Integrated in Tajo-master-CODEGEN-build #245 (See 
[https://builds.apache.org/job/Tajo-master-CODEGEN-build/245/])
TAJO-1386: CURRENT_DATE generates parsing errors sometimes. (hyunsik: rev 
3b9a2e5f287db3fcfdf6b0578c8184c47b8b3ebd)
* tajo-core/src/main/java/org/apache/tajo/engine/parser/SQLSyntaxError.java
* tajo-core/src/main/antlr4/org/apache/tajo/engine/parser/SQLParser.g4
* tajo-plan/src/main/java/org/apache/tajo/plan/InvalidQueryException.java
* tajo-core/src/main/java/org/apache/tajo/engine/parser/SQLAnalyzer.java
* CHANGES
* 
tajo-core/src/test/java/org/apache/tajo/engine/function/TestDateTimeFunctions.java


> CURRENT_DATE generates parsing errors sometimes.
> ------------------------------------------------
>
>                 Key: TAJO-1386
>                 URL: https://issues.apache.org/jira/browse/TAJO-1386
>             Project: Tajo
>          Issue Type: Bug
>          Components: parser
>         Environment: Tajo 0.11.0-SNAPSHOT
>            Reporter: Dongjoon Hyun
>            Assignee: Navis
>             Fix For: 0.11
>
>
> `current_date` works differently from other functions that returns DATE type.
> default> select cast('2015-03-10' as date)+1;
> ?plus
> -------------------------------
> 2015-03-11
> (1 rows, 0.008 sec, 0 B selected)
> default> select TO_DATE('2015-03-10','YYYY-MM-DD')+1;
> ?plus
> -------------------------------
> 2015-03-11
> (1 rows, 0.013 sec, 0 B selected)
> default> select current_date()+1;
> ERROR: mismatched input '+' expecting {<EOF>, EXCEPT, FROM, INTERSECT, UNION, 
> ';', ','}



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

Reply via email to