phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-2010) Properly validate number of arguments passed to the functions in FunctionParseNode#validate
Date Sat, 30 May 2015 07:55:17 GMT

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

James Taylor commented on PHOENIX-2010:
---------------------------------------

A few questions:
- Do you have a test case for UDF with default values called with and without default values?
- Are you throwing the same exception as would be thrown for a built-in when not enough/too
many args are supplied?

> Properly validate number of arguments passed to the functions in FunctionParseNode#validate
> -------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-2010
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2010
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.4.0
>            Reporter: Rajeshbabu Chintaguntla
>            Assignee: Rajeshbabu Chintaguntla
>             Fix For: 5.0.0, 4.5.0, 4.4.1
>
>         Attachments: PHOENIX-2010.patch
>
>
> 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.



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

Mime
View raw message