You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fabian Hueske (Jira)" <ji...@apache.org> on 2020/07/22 13:44:00 UTC

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

     [ https://issues.apache.org/jira/browse/FLINK-18673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fabian Hueske updated FLINK-18673:
----------------------------------
    Description: 
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.

  was:
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.


> 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
>    Affects Versions: 1.11.1
>            Reporter: Fabian Hueske
>            Priority: Major
>
> 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)