Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-31375

the values of map<string,string> are truncated by the CASE WHEN function.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.15.1
    • None
    • None

    Description

      the values of map<string,string> are truncated by the CASE WHEN function.

      // 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));

      the result:

      +I[{test=123}] 

      We hope the value of result is '123456789', but I get '123', the length is limited by 'abc'.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeff-zou jeff-zou
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: