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

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              twalthr Timo Walther
              Reporter:
              fhueske Fabian Hueske

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment