[
https://issues.apache.org/jira/browse/TAJO-1386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14354784#comment-14354784
]
ASF GitHub Bot commented on TAJO-1386:
--------------------------------------
GitHub user navis opened a pull request:
https://github.com/apache/tajo/pull/408
TAJO-1386 CURRENT_DATE generates parsing errors sometimes
added datetime_value_function to numeric_value_function
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/navis/tajo TAJO-1386
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tajo/pull/408.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #408
----
commit b8d02d216758673a478e43579ce3402046301aa0
Author: navis.ryu <[email protected]>
Date: 2015-03-10T11:32:26Z
TAJO-1386 CURRENT_DATE generates parsing errors sometimes
----
> 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
>
> `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)