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

Jianchao He commented on CALCITE-1581:
--------------------------------------

Hi, Julian, in Xiaoyong's video_stream analyze scenario, using *LATERAL TABLE* 
maybe a choice:
{quote}
select stream
  car_color, car_speed, car_plate
from video_stream, LATERAL TABLE(udtf_analyze(binary_data, meta_data)) as 
t(car_color, car_speed, car_plate)
{quote}

further more, does all scenarios which need UDAF can use *LATERAL TABLE* to 
express?
we would like to seek you advice on addressing such kind of matter, Thanks.

> 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)

Reply via email to