[
https://issues.apache.org/jira/browse/BEAM-7787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16893200#comment-16893200
]
Yang Zhang commented on BEAM-7787:
----------------------------------
Incidentally, does UDF support map, set, row as input and return types? After
simple test, it does not. Is there any approach to make these types work in
Beam UDF? Thank you!
> SQL transform crashes when UDF returns a list
> ---------------------------------------------
>
> Key: BEAM-7787
> URL: https://issues.apache.org/jira/browse/BEAM-7787
> Project: Beam
> Issue Type: Bug
> Components: dsl-sql
> Reporter: Yang Zhang
> Priority: Major
> Attachments: Screen Shot 2019-07-24 at 4.58.32 PM.png
>
>
> In Beam UDF, is it feasible to return a list? For example, the UDF function
> is defined as (input) String -> (output) List<String>,
> ```public static class UDF implements SerializableFunction<String,
> List<String>>```
>
> I got a nullpointerexception if a list is returned.
>
> Best,
> Yang
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)