Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12251 Rework the Table API & SQL type system
  3. FLINK-18673

Calling ROW() in a UDF results in UnsupportedOperationException

    XMLWordPrintableJSON

    Details

      Description

      Given a UDF func that accepts a ROW(INT, STRING) as parameter, it cannot be called like this:

      SELECT func(ROW(a, b)) FROM t

      while this works

      SELECT func(r) FROM (SELECT ROW(a, b) FROM t)

       

      The exception returned is:

      org.apache.flink.table.api.ValidationException: SQL validation failed. null

      with an empty UnsupportedOperationException as cause.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                twalthr Timo Walther
                Reporter:
                fhueske Fabian Hueske
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: