[
https://issues.apache.org/jira/browse/CALCITE-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17178732#comment-17178732
]
Danny Chen commented on CALCITE-4171:
-------------------------------------
Current problem is not how to get the {{isOptional}} flag to decide if to patch
up with {{DEFAULT}}s, it is "which kind of function should have patching up
defaults behavior", for now code base, it seems that for a named function call,
we always do that(e.g. the {{SqlUserDefinedFunction}} and
{{SqlUserDefinedTableMacro}}).
It seems not necessary to patch defaults for built in functions, such as the
window TVFs.
> 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)