[
https://issues.apache.org/jira/browse/BEAM-7787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16896361#comment-16896361
]
Andrew Pilloud commented on BEAM-7787:
--------------------------------------
Our tests are the best place to look for examples. TranslatableTable is here:
https://github.com/apache/beam/blob/c4c75bdf70254730cc06a3d888bbfed507c35611/sdks/java/extensions/sql/src/test/java/org/apache/beam/sdk/extensions/sql/BeamSqlDslUdfUdafTest.java#L349
> SQL should support complex types for UDF and have documentation
> ---------------------------------------------------------------
>
> Key: BEAM-7787
> URL: https://issues.apache.org/jira/browse/BEAM-7787
> Project: Beam
> Issue Type: New Feature
> 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)