[
https://issues.apache.org/jira/browse/PIG-3585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13833529#comment-13833529
]
Cheolsoo Park commented on PIG-3585:
------------------------------------
The reason why UNION duplicates records in tez is because of the following code:
{code:title=PigProcessor.java}
Tuple inputTuple = input.getCurrentTuple();
for (PhysicalOperator root : roots) {
root.attachInput(inputTuple);
}
runPipeline(leaf);
{code}
Each task loads a tuple from an input split and attaches to every root of the
pipeline. Since UNION has multiple roots, it ends up adding the same tuple
multiple times.
Looks like PIG-3527 is fixing this problem, so I will wait until PIG-3527 gets
committed.
> 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)