[jira] [Created] (FLINK-18673) Calling ROW() in a UDF results in UnsupportedOperationException

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-18673) Calling ROW() in a UDF results in UnsupportedOperationException

Shang Yuanchun (Jira)
Fabian Hueske created FLINK-18673:
-------------------------------------

             Summary: Calling ROW() in a UDF results in UnsupportedOperationException
                 Key: FLINK-18673
                 URL: https://issues.apache.org/jira/browse/FLINK-18673
             Project: Flink
          Issue Type: Sub-task
          Components: Table SQL / Planner
            Reporter: Fabian Hueske


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


{code:java}
SELECT func(ROW(a, b)) FROM t{code}
while this works

 

 
{code:java}
SELECT func(r) FROM (SELECT ROW(a, b) FROM t){code}
 

The exception returned is:
{quote}
org.apache.flink.table.api.ValidationException: SQL validation failed. null
{quote}
with an empty {{UnsupportedOperationException}} as cause.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)