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

Julian Hyde commented on CALCITE-4171:
--------------------------------------

There is already an API that determines whether parameters are required: 
{{SqlOperandTypeChecker.isOptional(int)}}. I think we should use that, rather 
than adding {{SqlOperator.paramFallBackAsDefault}}. It may mean that we have to 
use a {{SqlOperandTypeChecker}} rather than sub-classing a {{SqlFunction}}, but 
that is a better way to go for non-trivial functions.

> Support named parameters for table window functions
> ---------------------------------------------------
>
>                 Key: CALCITE-4171
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4171
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.23.0, 1.24.0
>            Reporter: Danny Chen
>            Assignee: Danny Chen
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 3h 50m
>  Remaining Estimate: 0h
>
> Supports window functions like named params style:
> {code:sql}
> select *
> from table(
> session(
>   data => table Shipments,
>   timecol => descriptor(rowtime),
>   key => descriptor(orderId),
>   size => INTERVAL '10' MINUTE))
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to