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

Piotr Nowojski commented on FLINK-10379:
----------------------------------------

I think this might be a false alarm. Documented else where ( 
[https://ci.apache.org/projects/flink/flink-docs-release-1.6/dev/table/tableApi.html#joins]
 ) is the following syntax:
{code:java}
// register function
TableFunction<String> split = new MySplitUDTF();
tEnv.registerFunction("split", split);

// join
Table orders = tableEnv.scan("Orders");
Table result = orders
    .leftOuterJoin(new Table(tEnv, "split(c)").as("s", "t", "v"))
    .select("a, b, s, t, v");{code}
which seems to be working. So this issue is probably only about inconsistency 
in the documentation.

I will fix the documentation and afterwards we probably can close this ticket.

> Can not use Table Functions in Java Table API
> ---------------------------------------------
>
>                 Key: FLINK-10379
>                 URL: https://issues.apache.org/jira/browse/FLINK-10379
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API &amp; SQL
>    Affects Versions: 1.6.1
>            Reporter: Piotr Nowojski
>            Assignee: Hequn Cheng
>            Priority: Critical
>
> As stated in the 
> [documentation|[https://ci.apache.org/projects/flink/flink-docs-stable/dev/table/udfs.html#table-functions],]
>  this is how table functions should be used in Java Table API:
> {code:java}
> // Register the function.
> tableEnv.registerFunction("split", new Split("#"));
> myTable.join("split(a) as (word, length)");
> {code}
> However {{Table.join(String)}} was removed sometime ago and now it is 
> impossible to use Table Functions in Java Table API.



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

Reply via email to