You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2022/11/03 18:02:00 UTC

[jira] [Commented] (CALCITE-5366) User defined function optional named arguments are required to be present

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

Julian Hyde commented on CALCITE-5366:
--------------------------------------

A test case for this would be useful. It might be useful to look through the existing unit tests and see if there's something similar. I honestly thought that I covered this case in CALCITE-941.

> User defined function optional named arguments are required to be present
> -------------------------------------------------------------------------
>
>                 Key: CALCITE-5366
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5366
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.32.0
>            Reporter: Tuomas Kiviaho
>            Priority: Major
>
> In situation where optional parameters are stated before the required ones the {{FamilyOperandTypeChecker#getOperandCountRange}} prohibits leaving these arguments undefined. 
> Would it be possible to have  {{getOperandCountRange}} reporting only the number of non-optional parameters in case named parameters are used.
> The current behavior might indeed be in line with SQL99 SQL:1999 Part 2 Section 10.4 as the {{SqlUtil#lookupSubjectRoutines}} states, but the current behavior kind of beats the flexibility that named parameters provide.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)