You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Luke Cwik (JIRA)" <ji...@apache.org> on 2017/06/13 19:38:00 UTC

[jira] [Commented] (BEAM-2445) DSL SQL to use service locator pattern to automatically register UDFs

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

Luke Cwik commented on BEAM-2445:
---------------------------------

This could be used to register tables as well but I'm not sure if there is much value in libraries registering tables within the global namespace.

> DSL SQL to use service locator pattern to automatically register UDFs
> ---------------------------------------------------------------------
>
>                 Key: BEAM-2445
>                 URL: https://issues.apache.org/jira/browse/BEAM-2445
>             Project: Beam
>          Issue Type: Improvement
>          Components: dsl-sql
>            Reporter: Luke Cwik
>            Assignee: Xu Mingmin
>            Priority: Minor
>              Labels: dsl_sql_merge
>
> Use a service locator pattern to find UDFs that can be registered. The service loader can be used to register UDFs for standard functions via DSL SQL, additional UDFs registered by third party libraries, and end user created UDFs.
> Example ServiceLoader usage within Apache Beam to find coder providers:
> https://github.com/apache/beam/blob/7126fdc6ee5671e99a2dede3f25ba616aa0e8fa4/sdks/java/core/src/main/java/org/apache/beam/sdk/coders/CoderRegistry.java#L147



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)