You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2011/03/22 19:58:05 UTC

[jira] [Created] (PIG-1930) comparison operation 'null == null' should evaluate to null

comparison operation 'null == null'  should evaluate to null
------------------------------------------------------------

                 Key: PIG-1930
                 URL: https://issues.apache.org/jira/browse/PIG-1930
             Project: Pig
          Issue Type: Bug
    Affects Versions: 0.8.0, 0.9.0
            Reporter: Thejas M Nair
             Fix For: 0.9.0


The expression  'null == null' evaluates to true, it should get evaluated as null.
ie the filter condition 'fil = filter inp by null == null;' allows all the records through.

It seems to be a problem only with null literal, expressions that evaluate to null don't seem to have a problem.
ie 'nullcol1 == nullcol2' (where nullcol1, nullcol2 are columns with null value), and (1 + null == 1 + null) work correctly .


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

[jira] [Updated] (PIG-1930) comparison operation 'null == null' should evaluate to null

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-1930:
--------------------------------

    Fix Version/s:     (was: 0.9.0)

> comparison operation 'null == null'  should evaluate to null
> ------------------------------------------------------------
>
>                 Key: PIG-1930
>                 URL: https://issues.apache.org/jira/browse/PIG-1930
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.8.0, 0.9.0
>            Reporter: Thejas M Nair
>             Fix For: 0.10
>
>
> The expression  'null == null' evaluates to true, it should get evaluated as null.
> ie the filter condition 'fil = filter inp by null == null;' allows all the records through.
> It seems to be a problem only with null literal, expressions that evaluate to null don't seem to have a problem.
> ie 'nullcol1 == nullcol2' (where nullcol1, nullcol2 are columns with null value), and (1 + null == 1 + null) work correctly .

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

[jira] [Updated] (PIG-1930) comparison operation 'null == null' should evaluate to null

Posted by "Olga Natkovich (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-1930:
--------------------------------

    Fix Version/s:     (was: 0.10)
    
> comparison operation 'null == null'  should evaluate to null
> ------------------------------------------------------------
>
>                 Key: PIG-1930
>                 URL: https://issues.apache.org/jira/browse/PIG-1930
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.8.0, 0.9.0
>            Reporter: Thejas M Nair
>
> The expression  'null == null' evaluates to true, it should get evaluated as null.
> ie the filter condition 'fil = filter inp by null == null;' allows all the records through.
> It seems to be a problem only with null literal, expressions that evaluate to null don't seem to have a problem.
> ie 'nullcol1 == nullcol2' (where nullcol1, nullcol2 are columns with null value), and (1 + null == 1 + null) work correctly .

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (PIG-1930) comparison operation 'null == null' should evaluate to null

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich updated PIG-1930:
--------------------------------

    Fix Version/s: 0.10

> comparison operation 'null == null'  should evaluate to null
> ------------------------------------------------------------
>
>                 Key: PIG-1930
>                 URL: https://issues.apache.org/jira/browse/PIG-1930
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.8.0, 0.9.0
>            Reporter: Thejas M Nair
>             Fix For: 0.10
>
>
> The expression  'null == null' evaluates to true, it should get evaluated as null.
> ie the filter condition 'fil = filter inp by null == null;' allows all the records through.
> It seems to be a problem only with null literal, expressions that evaluate to null don't seem to have a problem.
> ie 'nullcol1 == nullcol2' (where nullcol1, nullcol2 are columns with null value), and (1 + null == 1 + null) work correctly .

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