pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Noguchi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (PIG-4933) TestDataBagAccess.testBagConstantFlatten1/TestLogicalPlanBuilder.testQuery90 broken after PIG-2315
Date Tue, 02 Aug 2016 16:58:20 GMT

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

Koji Noguchi updated PIG-4933:
------------------------------
    Attachment: pig-4933-v02.patch

Some tests were failing with NPE with the previous patch.
Added one null check.

With this patch, at least the tests seem to be going through.


> TestDataBagAccess.testBagConstantFlatten1/TestLogicalPlanBuilder.testQuery90  broken
after PIG-2315
> ---------------------------------------------------------------------------------------------------
>
>                 Key: PIG-4933
>                 URL: https://issues.apache.org/jira/browse/PIG-4933
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Koji Noguchi
>         Attachments: pig-4933-v01.patch, pig-4933-v02.patch
>
>
> {code:title=test.pig}
> A = load '1line.txt';
> B = foreach A generate {(('p1-t1-e1', 'p1-t1-e2'),('p1-t2-e1', 'p1-t2-e2')),(('p2-t1-e1',
'p2-t1-e2'), ('p2-t2-e1', 'p2-t2-e2'))};
> C = foreach B generate $0 as pairbag : { pair: ( t1: (e1, e2), t2: (e1, e2) ) };
> DUMP C;
> {code}
> Above results in empty '()'



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message