pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-1922) null is being treated as string constant in expressions
Date Mon, 21 Mar 2011 21:34:06 GMT

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

Daniel Dai commented on PIG-1922:
---------------------------------

Thanks for checking. 
1. This is consistent with Pig
2. This is consistent with Pig (I am wrong in my previous comment)
3. This we need to fix in this Jira. However, introduce another unknown data type in Pig seems
overkilling. 
4. This is consistent with Pig

> null is being treated as string constant in expressions
> -------------------------------------------------------
>
>                 Key: PIG-1922
>                 URL: https://issues.apache.org/jira/browse/PIG-1922
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.8.0, 0.9.0
>            Reporter: Thejas M Nair
>             Fix For: 0.9.0
>
>
> In following statement, the null gets translated to string constant. The statement is
invalid, and should result in an error. 
> {code}
> fil = filter l by a != null; -- This does not give an error, the correct usage is "a
is not null"
> fil = filter l by a != adsf; -- this does give an error message saying that there is
no column asdf
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message