Grokbase Groups Pig dev August 2008
FAQ
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.

Search Discussions

  • David Ciemiewicz (JIRA) at Oct 22, 2008 at 2:47 am
    [ https://issues.apache.org/jira/browse/PIG-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641696#action_12641696 ]

    David Ciemiewicz commented on PIG-385:
    --------------------------------------

    I definitely have use for null or NULL as a constant. It's especially important for binconditionals like in the example. Any way to get this prioritized sooner rather than later? It use this all the time in my Pig 1.4 scripts only I use '' (empty string) as the proxy today.
    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.
  • Olga Natkovich (JIRA) at Oct 30, 2008 at 6:13 pm
    [ https://issues.apache.org/jira/browse/PIG-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644061#action_12644061 ]

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

    We are planning to add this functionality in a couple weeks.
    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedAug 21, '08 at 12:03a
activeOct 30, '08 at 6:13p
posts3
users1
websitepig.apache.org

1 user in discussion

Olga Natkovich (JIRA): 3 posts

People

Translate

site design / logo © 2022 Grokbase