[
https://issues.apache.org/jira/browse/PIG-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13835120#comment-13835120
]
Cheolsoo Park commented on PIG-3585:
------------------------------------
As for UNION, Tez doesn't allow multiple inputs for the root vertex. So when
adding more than one input to the vertex for UNION, TezDagBuilder fails with
the following error-
{code}
Caused by: java.lang.IllegalStateException: For now, only a single Root Input
can be added to a Vertex
at org.apache.tez.dag.api.Vertex.addInput(Vertex.java:156)
at
org.apache.pig.backend.hadoop.executionengine.tez.TezDagBuilder.newVertex(TezDagBuilder.java:415)
at
org.apache.pig.backend.hadoop.executionengine.tez.TezDagBuilder.visitTezOp(TezDagBuilder.java:136)
at
org.apache.pig.backend.hadoop.executionengine.tez.TezOperator.visit(TezOperator.java:117)
at
org.apache.pig.backend.hadoop.executionengine.tez.TezOperator.visit(TezOperator.java:37)
at
org.apache.pig.impl.plan.DependencyOrderWalker.walk(DependencyOrderWalker.java:70)
at org.apache.pig.impl.plan.PlanVisitor.visit(PlanVisitor.java:46)
at
org.apache.pig.backend.hadoop.executionengine.tez.TezJobControlCompiler.buildDAG(TezJobControlCompiler.java:56)
at
org.apache.pig.backend.hadoop.executionengine.tez.TezJobControlCompiler.getJob(TezJobControlCompiler.java:103)
... 19 more
{code}
We probably can't implement UNION with a single vertex.
> Add e2e tests for SAMPLE and UNION
> ----------------------------------
>
> Key: PIG-3585
> URL: https://issues.apache.org/jira/browse/PIG-3585
> Project: Pig
> Issue Type: Sub-task
> Components: tez
> Affects Versions: tez-branch
> Reporter: Cheolsoo Park
> Assignee: Cheolsoo Park
> Fix For: tez-branch
>
> Attachments: PIG-3585-1.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.1#6144)