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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.4.0
    • 4.5.0, 4.4.1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: