phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-2476) Use the standard string concatenation operator symbol
Date Wed, 02 Dec 2015 00:42:11 GMT

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

James Taylor commented on PHOENIX-2476:
---------------------------------------

Looks like Postgres and Oracle support || for string concatenation. I can see how + would
be convenient, but not sure I'd call it the standard operator. 

[~julianhyde] or [~maryannxue] - does Calcite support using the + operator for string concatenation?

> Use the standard string concatenation operator symbol
> -----------------------------------------------------
>
>                 Key: PHOENIX-2476
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2476
>             Project: Phoenix
>          Issue Type: Improvement
>    Affects Versions: 4.6.0
>            Reporter: Kevin Liew
>              Labels: newbie, phoenix, string
>
> Phoenix uses '||' as the string concatenation operator symbol instead of the commonly
used '+'
> https://msdn.microsoft.com/en-CA/library/ms177561.aspx
> If we try to use '+' we get an error from the queryserver
> {noformat}Type mismatch. VARCHAR for (COLUMN1 + KEYCOLUMN){noformat}
> The '+' 
> operator is not implemented for VARCHAR so it would be an improvement to implement the
standard function for that '+' symbol



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

Mime
View raw message