hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeep Kamath (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-385) Should support 'null' as a constant
Date Thu, 04 Dec 2008 17:54:44 GMT

     [ https://issues.apache.org/jira/browse/PIG-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Pradeep Kamath updated PIG-385:

    Assignee: Pradeep Kamath
      Status: Patch Available  (was: Open)

The code changes to implement the null constant are in jira issue PIG-538 and explained in
http://issues.apache.org/jira/browse/PIG-538?focusedCommentId=12652935#action_12652935. The
attached patch adds more tests to the unit test case TestNullConstant and has changes to support
having "null" as a map constant's value but to disallow use of "null" as a map constant's

> 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
>            Assignee: Pradeep Kamath
>            Priority: Minor
>             Fix For: types_branch
>         Attachments: PIG-385.patch
> 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.

View raw message