[
https://issues.apache.org/jira/browse/CALCITE-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15860627#comment-15860627
]
Jianchao He commented on CALCITE-1581:
--------------------------------------
Thank you for your link
[CALCITE-1472|https://issues.apache.org/jira/browse/CALCITE-1472] and example,
it helps a lot.
In addition this
[link|https://calcite.apache.org/apidocs/org/apache/calcite/sql/validate/SqlConformance.html#isApplyAllowed--]
also explained it.
\\
So since we can use LATERAL TABLE/ CROSS(OUTER) APPLY to express UDTF, maybe no
need to add other keyword to do it.
> UDTF like in hive
> -----------------
>
> Key: CALCITE-1581
> URL: https://issues.apache.org/jira/browse/CALCITE-1581
> Project: Calcite
> Issue Type: New Feature
> Reporter: Xiaoyong Deng
> Assignee: Julian Hyde
> Labels: udtf
>
> Support one row in and multi-column/multi-row out(one-to-many mapping), just
> like udtf in hive.
> The query would like this:
> {code}
> select
> func(c0, c1) as (f0, f1, f2)
> from table_name;
> {code}
> c0 and c1 are 'table_name' columns. f0, f1 and f2 are new generated columns.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)