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

ASF subversion and git services commented on KYLIN-5756:
--------------------------------------------------------

Commit 572d78a45b6e0cabb248b6772a9b434221d9f323 in kylin's branch 
refs/heads/kylin5 from Zhiting Guo
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=572d78a45b ]

KYLIN-5756 Concat string and number with + gives unexpected result

KYLIN-5747 duplicated
Co-authored-by: Zhiting Guo <[email protected]>


> Concat string and number with '+' gives unexpected result
> ---------------------------------------------------------
>
>                 Key: KYLIN-5756
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5756
>             Project: Kylin
>          Issue Type: Improvement
>          Components: Query Engine
>    Affects Versions: 5.0-beta
>            Reporter: pengfei.zhan
>            Assignee: pengfei.zhan
>            Priority: Major
>             Fix For: 5.0-beta
>
>
> Concat string and number gives unexpected result.
> For example:
> 1. concat constant with plus operator, gives unexpected result
> {code:java}
> 1' + 3 + 3  // 7 (correct)
> '1' + 3 + '3'  // 4.03 (wrong result)
> '1' + '3' + 'a' // error
> {code}
> 2. concat string and number, the first '+' produces null
> {code:java}
> 'q' + 1 + 1 // error
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to