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

The IF built-in function returns an exception when returning a string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.15.3
    • None
    • None

    Description

      The IF built-in function returns an exception when returning a string

      There is no explanation in the official documentation!

      offlical link:

      https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/dev/table/functions/systemfunctions/

      Flink version:1.15.1/1.15.3

       

      CASE SQL:

      select 
              if('asd'='asd', '1234', '12345' )  as expect_1234
              , if('asd'='123', '1234', '12345') as expect_12345
      ;  

      Expected Result:

       

      the column expect_1234  value should be '1234'
      the column expect_12345 value should be '12345'

       

       

      Real Returend Result( test in sql-client):

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lyndon.lee lyndon.lee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: