[ https://issues.apache.org/jira/browse/PIG-5203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15951024#comment-15951024 ]
Adam Szita commented on PIG-5203: --------------------------------- Without this patch it was relying on the cfe value, so whatever comes from the ForEach operator. In this test case there is a -1 coming from cfe, and 2 coming from the rearrange operator (as per the Pig query {{parallel 2}}). I believe we should take the max of these values. > Partitioner E2E test fails on spark > ----------------------------------- > > Key: PIG-5203 > URL: https://issues.apache.org/jira/browse/PIG-5203 > Project: Pig > Issue Type: Sub-task > Components: spark > Reporter: Adam Szita > Assignee: Adam Szita > Fix For: spark-branch > > Attachments: PIG-5203.0.patch > > > Cause of failure is the difference between expected and actual result: > {color:red}Actual: > 18 160 > 19 164 > 20 166 > ... > {color}{color:green} > Expected: > 18 80 > 18 80 > 19 82 > 19 82 > .... > {color} > Seems like although we specify {{PARTITION BY > org.apache.pig.test.utils.SimpleCustomPartitioner2 parallel 2}} in the query > it has no effect in Spark mode. -- This message was sent by Atlassian JIRA (v6.3.15#6346)