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

RAND_INTEGER can't be existed in a IF statement

    XMLWordPrintableJSON

Details

    Description

      The minimum produce steps:

      Flink SQL> select if(1=1, rand_integer(100), 0);
      [ERROR] Could not execute SQL statement. Reason:
      java.lang.Exception: Unsupported operand types: IF(boolean, INT, INT NOT NULL)

       

      But we do not see the exception reported in 1.14, not sure which version this bug was introduced.

      Attachments

        Issue Links

          Activity

            People

              xuyangzhong xuyang
              dianer17 Guojun Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: