Pavel Fedyakov created PIG-3490:
-----------------------------------

             Summary: Inconsistent NULL handling in ABS for different numeric 
types
                 Key: PIG-3490
                 URL: https://issues.apache.org/jira/browse/PIG-3490
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.11
            Reporter: Pavel Fedyakov
            Priority: Minor


ABS of NULL either throws NullPointerException or returns NULL. It depends on 
the numeric type of argument:
IntAbs, LongAbs, FloatAbs -- fails,
DoubleAbs -- returns NULL

It's inconvenient. I'd rather prefer that ABS(NULL) always returns NULL.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to