Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2010

Properly validate number of arguments passed to the functions in FunctionParseNode#validate

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.4.0
    • Fix Version/s: 4.5.0, 4.4.1
    • Labels:
      None

      Description

      Getting ArrayIndexOutOfBoundsException if we pass more arguments than actual number arguments. And if we pass lesser number of arguments then getting null values. It's not problem for built-in functions because we are using function name and number arguments combination key for lookup built-in functions in the the map. It's problem for UDF functions.

        Attachments

        1. PHOENIX-2010.patch
          4 kB
          Rajeshbabu Chintaguntla

          Activity

            People

            • Assignee:
              rajeshbabu Rajeshbabu Chintaguntla
              Reporter:
              rajeshbabu Rajeshbabu Chintaguntla
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: