You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2020/05/21 03:06:00 UTC

[jira] [Commented] (FLINK-17855) UDF with parameter Array(Row) can not work

    [ https://issues.apache.org/jira/browse/FLINK-17855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17112751#comment-17112751 ] 

Jark Wu commented on FLINK-17855:
---------------------------------

I think this is reasonable, because planner can't infer what's the exact type of Row. Users should use type hints or override {{getTypeInference}} to tell planner the parameter information.
Do you mean want to support {{Row[]}} parameter without type hints or {{getTypeInference}} implementation?

> UDF with parameter Array(Row) can not work
> ------------------------------------------
>
>                 Key: FLINK-17855
>                 URL: https://issues.apache.org/jira/browse/FLINK-17855
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Planner
>            Reporter: Jingsong Lee
>            Priority: Major
>             Fix For: 1.11.0
>
>
> {code:java}
> public String eval(Row[] rows) {
>   ...
> }
> {code}
> Can not work.



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