[jira] [Updated] (CALCITE-5745) CONCAT2 function (enabled in Oracle library) gets wrong result when one of the arguments is NULL
[ https://issues.apache.org/jira/browse/CALCITE-5745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruben Q L updated CALCITE-5745: --- Fix Version/s: 1.35.0 > CONCAT2 function (enabled in Oracle library) gets wrong result when one of > the arguments is NULL > > > Key: CALCITE-5745 > URL: https://issues.apache.org/jira/browse/CALCITE-5745 > Project: Calcite > Issue Type: Bug > Components: core >Affects Versions: 1.34.0 >Reporter: ZheHu >Assignee: ZheHu >Priority: Major > Labels: pull-request-available > Fix For: 1.35.0 > > > Tested CONCAT function in Oracle and got the corresponding results. > {code} > select concat('a', cast(null as varchar(20))) from DUAL; > --- results in 'a' > {code} > {code} > select concat('a', null) from DUAL; > select 'a' || null from DUAL; > --- both result in 'a' > {code} > In Calcite(see checkConcat2Func() in SqlOperatorTest.java), CONCAT2 function > gets null when running: > {code} > concat('a', cast(null as varchar)) > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (CALCITE-5745) CONCAT2 function (enabled in Oracle library) gets wrong result when one of the arguments is NULL
[ https://issues.apache.org/jira/browse/CALCITE-5745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ruben Q L updated CALCITE-5745: --- Summary: CONCAT2 function (enabled in Oracle library) gets wrong result when one of the arguments is NULL (was: CONCAT2 function(enabled in Oracle library) gets wrong result when one of the argument is NULL) > CONCAT2 function (enabled in Oracle library) gets wrong result when one of > the arguments is NULL > > > Key: CALCITE-5745 > URL: https://issues.apache.org/jira/browse/CALCITE-5745 > Project: Calcite > Issue Type: Bug > Components: core >Affects Versions: 1.34.0 >Reporter: ZheHu >Assignee: ZheHu >Priority: Major > Labels: pull-request-available > > Tested CONCAT function in Oracle and got the corresponding results. > {code} > select concat('a', cast(null as varchar(20))) from DUAL; > --- results in 'a' > {code} > {code} > select concat('a', null) from DUAL; > select 'a' || null from DUAL; > --- both result in 'a' > {code} > In Calcite(see checkConcat2Func() in SqlOperatorTest.java), CONCAT2 function > gets null when running: > {code} > concat('a', cast(null as varchar)) > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)