You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Gleb Kanterov (JIRA)" <ji...@apache.org> on 2019/01/10 23:06:00 UTC

[jira] [Closed] (BEAM-6133) [SQL] Add support for TableMacro UDF

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

Gleb Kanterov closed BEAM-6133.
-------------------------------

> [SQL] Add support for TableMacro UDF
> ------------------------------------
>
>                 Key: BEAM-6133
>                 URL: https://issues.apache.org/jira/browse/BEAM-6133
>             Project: Beam
>          Issue Type: New Feature
>          Components: dsl-sql
>            Reporter: Gleb Kanterov
>            Assignee: Gleb Kanterov
>            Priority: Major
>             Fix For: 2.10.0
>
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> Now we support only ScalarFunction UDFs. In Calcite, there are other kinds of UDFs. With TableMacro UDFs users can connect external data sources in a similar way as in TableProvider, but without specifying a schema, or enumerating a list of existing tables in advance. 
> An example use case is connecting external metadata service and querying range of partitions.
> {code}
> SELECT COUNT(*) FROM table(my_udf('dataset', start = '2017-01-01', end = '2018-01-01'))
> {code}
> Where the implementation of `my_udf` will connect to this service, get file locations for a range of partitions, and translate to PTransform reading it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)