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

Weihua Hu commented on FLINK-31375:
-----------------------------------

[~jeff-zou] I was unable to reproduce this in my local environment with the 
code of master branch.

> the values of map<string,string> are truncated by the CASE WHEN function.
> -------------------------------------------------------------------------
>
>                 Key: FLINK-31375
>                 URL: https://issues.apache.org/jira/browse/FLINK-31375
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / API, Table SQL / Runtime
>    Affects Versions: 1.15.1
>            Reporter: jeff-zou
>            Priority: Major
>
> the values of map<string,string> are truncated by the CASE WHEN function.
> {code:java}
> // sql
> create table test (a map<varchar, string>) with ('connector'='print');
> insert into test  select * from (values(case when true then 
> map['test','123456789'] else map ['msg_code','0', 'msg_reason', 'abc'] 
> end));{code}
> the result:
> {code:java}
> +I[{test=123}] {code}
> We hope the value of result is '123456789', but I get '123', the length is 
> limited by 'abc'.
>  



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

Reply via email to