You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Cheolsoo Park (JIRA)" <ji...@apache.org> on 2013/02/25 22:18:13 UTC

[jira] [Comment Edited] (PIG-3150) e2e Scripting_5 fails in trunk

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

Cheolsoo Park edited comment on PIG-3150 at 2/25/13 9:17 PM:
-------------------------------------------------------------

[~dreambird], why do you need this change?
{code}
-    return (outm, outt, outb)
+    return ((outm,outt,outb))
{code}
The return object is already a PyTuple, so you don't have to wrap it again. Can you please resubmit a patch?
                
      was (Author: cheolsoo):
    [~dreambird], why do you need this change?
{code}
-    return (outm, outt, outb)
+    return ((outm,outt,outb))
{code}
The return object is already a PuTuple, so you don't have to wrap it again. Can you please resubmit a patch?
                  
> e2e Scripting_5 fails in trunk
> ------------------------------
>
>                 Key: PIG-3150
>                 URL: https://issues.apache.org/jira/browse/PIG-3150
>             Project: Pig
>          Issue Type: Bug
>          Components: e2e harness
>    Affects Versions: 0.12
>            Reporter: Cheolsoo Park
>            Assignee: Johnny Zhang
>             Fix For: 0.12
>
>         Attachments: PIG-3150.patch.txt, PIG-3150.patch.txt
>
>
> To reproduce the error, please do:
> {code}
> ant -Dhadoopversion=20 -Dharness.old.pig=`pwd` -Dharness.cluster.conf=/etc/hadoop/conf/ -Dharness.cluster.bin=/usr/lib/hadoop/bin/hadoop test-e2e -Dtests.to.run="-t Scripting_5"
> {code}
> PIG-3082 introduced a new Front-end exception, and that makes e2e Scripting_5 fail with the following error:
> {code}
> 2013-01-30 15:08:41,340 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Pig script failed to parse:
> <file ./out/pigtest/cheolsoo/cheolsoo-1359586527-nightly.conf-Scripting/Scripting_5.pig, line 4, column 4> pig script failed to validate: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 0: Given UDF returns an improper Schema. Schema should only contain one field of a Tuple, Bag, or a single type. Returns: {outm: map[],outt: (name: chararray,age: int,gpa: double),outb: {t: (name: chararray,age: int,gpa: double)}}
> {code}
> And here is the stack trace:
> {code}
> Caused by: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 0: Given UDF returns an improper Schema. Schema should only contain one field of a Tuple, Bag, or a single type. Returns: {outm: map[],outt: (name: chararray,age: int,gpa: double),outb: {t: (name: chararray,age: int,gpa: double)}}
>         at org.apache.pig.newplan.logical.expression.UserFuncExpression.getFieldSchema(UserFuncExpression.java:206)
>         at org.apache.pig.newplan.logical.optimizer.FieldSchemaResetter.execute(SchemaResetter.java:264)
>         at org.apache.pig.newplan.logical.expression.AllSameExpressionVisitor.visit(AllSameExpressionVisitor.java:143)
>         at org.apache.pig.newplan.logical.expression.UserFuncExpression.accept(UserFuncExpression.java:88)
>         at org.apache.pig.newplan.ReverseDependencyOrderWalker.walk(ReverseDependencyOrderWalker.java:70)
>         at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:52)
>         at org.apache.pig.newplan.logical.optimizer.SchemaResetter.visitAll(SchemaResetter.java:67)
>         at org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:122)
>         at org.apache.pig.newplan.logical.relational.LOGenerate.accept(LOGenerate.java:240)
>         at org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
>         at org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:114)
>         at org.apache.pig.newplan.logical.relational.LOForEach.accept(LOForEach.java:76)
>         at org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
>         at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:52)
>         at org.apache.pig.parser.LogicalPlanBuilder.expandAndResetVisitor(LogicalPlanBuilder.java:402)
>         ... 22 more
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira