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

May get wrong result for `if` expression if it's string data type

    XMLWordPrintableJSON

Details

    Description

      Can be reproduced by the folowing code in `org.apache.flink.table.planner.runtime.batch.sql.CalcITCase`

       

      checkResult("SELECT if(b > 10, 'ua', c) from Table3", data3) 

      The actual result is [co, He, He, ...].

      Seems it will only get the first two characters.

       

      Attachments

        Issue Links

          Activity

            People

              luoyuxia luoyuxia
              luoyuxia luoyuxia
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: