You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Clive Stellings (JIRA)" <ji...@apache.org> on 2018/03/07 15:42:00 UTC
[jira] [Updated] (PHOENIX-4639) Udf's don't run execute method when
using null as a parameter.
[ https://issues.apache.org/jira/browse/PHOENIX-4639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Clive Stellings updated PHOENIX-4639:
-------------------------------------
Description: When attempting to use a UDF the code for evaluate never runs if the parameter for the UDF is null. I wrote a function called isnull that is attempting to emulate the same function as in Mysql but when I enter null e.g. isnull(null) it returns with an empty value and when I check if the evaluate method actually runs, it never enters the method. (was: When attempting to use a UDF the code for evaluate never runs if the parameter for the UDF is null. I wrote a function called isnull that and am attempting to emulate the same function as in Mysql but when I enter null e.g. isnull(null) it returns with an empty value and when I check if the eva;iate method actually runs, it never enters the method.)
> Udf's don't run execute method when using null as a parameter.
> --------------------------------------------------------------
>
> Key: PHOENIX-4639
> URL: https://issues.apache.org/jira/browse/PHOENIX-4639
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.13.2-cdh5.11.2
> Environment: Centos 7 using Cloudera
> Reporter: Clive Stellings
> Priority: Major
> Attachments: IsNull.java
>
>
> When attempting to use a UDF the code for evaluate never runs if the parameter for the UDF is null. I wrote a function called isnull that is attempting to emulate the same function as in Mysql but when I enter null e.g. isnull(null) it returns with an empty value and when I check if the evaluate method actually runs, it never enters the method.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)