[ https://issues.apache.org/jira/browse/CALCITE-1581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16807398#comment-16807398 ]
pengzhiwei edited comment on CALCITE-1581 at 4/2/19 4:15 AM: ------------------------------------------------------------- [~julianhyde], I agree with you that we can modify the validator to work on the sugared syntax. In my previous thinking,I want to minimum the modification to support this syntax. So I rewrite the sqlNode to a already supported syntax(Lateral Table),just like the rewrite for "nulif" and other function. Since you have mentioned that rewrite would affect the error message, I will do the work in the _SqlToRelConverter_ .Thanks for you suggestion. was (Author: pzw2018): [~julianhyde], I agree with you that we can modify the validator to work on the sugared syntax. In my previous thinking,I want to minimum the modification to support this syntax. So I rewrite the sqlNode to a already supported syntax(Lateral Table),just like the rewrite for "nulif" and other function. Since you have mentioned that rewrite would affect the error message, I will do the work in the _SqlToRelConverter .Thanks for you suggestion. > 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: Sihua Zhou > Priority: Major > Labels: pull-request-available, udtf > Fix For: 1.20.0 > > Time Spent: 2h 50m > Remaining Estimate: 0h > > 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 (v7.6.3#76005)