You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2008/12/04 00:17:44 UTC

[jira] Commented: (PIG-385) Should support 'null' as a constant

    [ https://issues.apache.org/jira/browse/PIG-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12653041#action_12653041 ] 

Olga Natkovich commented on PIG-385:
------------------------------------

Pig-538 that I just committed solves adds this functionality. Will keep this bug open till we add a few more test cases.

> Should support 'null' as a constant
> -----------------------------------
>
>                 Key: PIG-385
>                 URL: https://issues.apache.org/jira/browse/PIG-385
>             Project: Pig
>          Issue Type: New Feature
>          Components: impl
>    Affects Versions: types_branch
>            Reporter: Alan Gates
>            Priority: Minor
>             Fix For: types_branch
>
>
> It would be nice to be able to do things like:
> B = foreach A generate $0 > 0 ? $0 : null;
> but right now null is not allowed as a constant.  This null constant should be allowed anywhere an expression would be, and should be castable (that is (int)null).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.