Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5366

User defined function optional named arguments are required to be present

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.32.0
    • None
    • core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tuomas_kiviaho Tuomas Kiviaho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: