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 2015/10/31 22:55:27 UTC

[jira] [Created] (CALCITE-947) Allow optional parameters to have default values other than NULL

Julian Hyde created CALCITE-947:
-----------------------------------

             Summary: Allow optional parameters to have default values other than NULL
                 Key: CALCITE-947
                 URL: https://issues.apache.org/jira/browse/CALCITE-947
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde
            Assignee: Julian Hyde


As of CALCITE-941 user-defined functions can have optional parameters and you can omit them or use the DEFAULT keyword. But the default value must be NULL, and therefore the parameter must have an optional type.

This case would remove that restriction and allow default values which are literals, or calls to system functions (e.g. USER) or references to other parameters, or expressions composed thereof.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)