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

Mohit Sabharwal commented on PIG-4276:
--------------------------------------

FYI [~kellyzly] and [~praveenr019], please take a look at the patch.

Spark {{groupByKey}}, {{reduceByKey}} and {{CoGroupRDD}} return tuples not 
sorted by key in Spark (unlike MR).

Note that {{reduceByKey}} is used by DISTINCT operator in Spark engine.

Where possible, patch uses {{Util.checkQueryOutputsAfterSort}}. In other 
places, the patch introduces an {{ORDER BY}} command to sort the GROUP BY or 
DISTINCT output.


> Fix ordering related failures in TestEvalPipeline for Spark
> -----------------------------------------------------------
>
>                 Key: PIG-4276
>                 URL: https://issues.apache.org/jira/browse/PIG-4276
>             Project: Pig
>          Issue Type: Sub-task
>          Components: spark
>            Reporter: liyunzhang_intel
>            Assignee: Mohit Sabharwal
>             Fix For: spark-branch
>
>         Attachments: PIG-4276.patch, 
> TEST-org.apache.pig.test.TestEvalPipeline.txt
>
>
> error log is attached



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to