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

liyunzhang_intel commented on PIG-5203:
---------------------------------------

[~szita]:  
cfe.getRequestedParallelism() is alway -1 while the rp value of 
combinerLocalRearrange depends on user settings.
{code}
   POReduceBySpark reduceOperator = new POReduceBySpark(cfe.getOperatorKey(), 
cfe
                            .getRequestedParallelism(),
                            cfe.getInputPlans(), cfe.getToBeFlattened(), 
combinePack, newRearrange);

{code}

Can we change the code like
{code}
  POReduceBySpark reduceOperator = new POReduceBySpark(cfe.getOperatorKey(), 
combinerLocalRearrange.getRequestedParallelism(),
                            cfe.getInputPlans(), cfe.getToBeFlattened(), 
combinePack, newRearrange);

{code}
if we can,please run all unit tests to verify whether there is side effect to 
the code modification



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

Reply via email to