hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeep Kamath (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-1030) explain and dump not working with two UDFs inside inner plan of foreach
Date Mon, 02 Nov 2009 20:10:59 GMT

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

Pradeep Kamath updated PIG-1030:
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.6.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

+1, patch committed, Thanks Richard!

> explain and dump not working with two UDFs inside inner plan of foreach
> -----------------------------------------------------------------------
>
>                 Key: PIG-1030
>                 URL: https://issues.apache.org/jira/browse/PIG-1030
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Ying He
>            Assignee: Richard Ding
>             Fix For: 0.6.0
>
>         Attachments: PIG-1030.patch, PIG-1030.patch
>
>
> this scprit does not work
> register /homes/yinghe/owl/string.jar;
> a = load '/user/yinghe/a.txt' as (id, color);
> b = group a all;
> c = foreach b {
>     d = distinct a.color;
>     generate group, string.BagCount2(d), string.ColumnLen2(d, 0);
> }
> the udfs are regular, not algebraic.
> then if I call  "dump c;" or "explain c", I would get  this error message.
> ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2019: Expected to find plan with single
leaf. Found 2 leaves.
> The error only occurs for the first time, after getting this error, if I call "dump c"
or "explain c" again, it would succeed.

-- 
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