hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Gates (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (PIG-434) AND and OR do not give right results with nulls
Date Thu, 12 Nov 2009 04:15:39 GMT

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

Alan Gates reassigned PIG-434:
------------------------------

    Assignee: Pradeep Kamath

> AND and OR do not give right results with nulls
> -----------------------------------------------
>
>                 Key: PIG-434
>                 URL: https://issues.apache.org/jira/browse/PIG-434
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.2.0
>            Reporter: Pradeep Kamath
>            Assignee: Pradeep Kamath
>             Fix For: 0.2.0
>
>         Attachments: PIG-434.patch
>
>
> Here are the truth tables for AND and OR - currently we do not short circuit and return
a null if either operand is null (for both AND and OR)
> {noformat}
>         truth table for AND 
>         t = true, n = null, f = false
>         AND  t n f
>               t    t n f
>              n   n n f
>              f    f f f
>         truth table for OR 
>         t = true, n = null, f = false
>         OR   t n f
>              t    t t t
>             n    t n n
>             f     t n f
> {noformat}

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


Mime
View raw message