You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (JIRA)" <ji...@apache.org> on 2017/08/04 03:18:00 UTC
[jira] [Updated] (CALCITE-1924) Support operator "+" as string
concat operator
[ https://issues.apache.org/jira/browse/CALCITE-1924?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde updated CALCITE-1924:
---------------------------------
Description:
Currently the following SQL is not supported.
{code}
select 'A' + 'B' + 'C';
{code}
We get the exception:
{noformat}
Error while executing SQL "select 'A' + 'B' + 'C'": From line 1, column 8 to line 1, column 16: Cannot apply '+' to arguments of type '<CHAR(1)> + <CHAR(1)>'. Supported form(s): '<NUMERIC> + <NUMERIC>'
'<DATETIME_INTERVAL> + <DATETIME_INTERVAL>'
'<DATETIME> + <DATETIME_INTERVAL>'
'<DATETIME_INTERVAL> + <DATETIME>' (state=,code=0)
{noformat}
In this JIRA, I'll fix this by supporting operator "+" as string concat operator.
Similar to CALCITE-1374 and CALCITE-1897.
was:
Current the following sql is not supported.
select 'A' + 'B' + 'C';
We get the exception:
Error while executing SQL "select 'A' + 'B' + 'C'": From line 1, column 8 to line 1, column 16: Cannot apply '+' to arguments of type '<CHAR(1)> + <CHAR(1)>'. Supported form(s): '<NUMERIC> + <NUMERIC>'
'<DATETIME_INTERVAL> + <DATETIME_INTERVAL>'
'<DATETIME> + <DATETIME_INTERVAL>'
'<DATETIME_INTERVAL> + <DATETIME>' (state=,code=0)
In this JIRA, I'll fix this by supporting operator "+" as string concat operator.
Similar to https://issues.apache.org/jira/browse/CALCITE-1374 and https://issues.apache.org/jira/browse/CALCITE-1897 .
> Support operator "+" as string concat operator
> ----------------------------------------------
>
> Key: CALCITE-1924
> URL: https://issues.apache.org/jira/browse/CALCITE-1924
> Project: Calcite
> Issue Type: Improvement
> Reporter: Roger Shi
> Assignee: Julian Hyde
> Priority: Minor
>
> Currently the following SQL is not supported.
> {code}
> select 'A' + 'B' + 'C';
> {code}
> We get the exception:
> {noformat}
> Error while executing SQL "select 'A' + 'B' + 'C'": From line 1, column 8 to line 1, column 16: Cannot apply '+' to arguments of type '<CHAR(1)> + <CHAR(1)>'. Supported form(s): '<NUMERIC> + <NUMERIC>'
> '<DATETIME_INTERVAL> + <DATETIME_INTERVAL>'
> '<DATETIME> + <DATETIME_INTERVAL>'
> '<DATETIME_INTERVAL> + <DATETIME>' (state=,code=0)
> {noformat}
> In this JIRA, I'll fix this by supporting operator "+" as string concat operator.
> Similar to CALCITE-1374 and CALCITE-1897.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)