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

Rohini Palaniswamy commented on PIG-3634:
-----------------------------------------

[~cheolsoo],
   java.lang.ClassCastException: org.apache.pig.impl.io.NullableBytesWritable 
cannot be cast to org.apache.pig.impl.io.NullableText happens after PIG-3636 as 
Daniel mentioned. Without that checkin e2e tests pass fine for me as well.  
Initially seeing your comment, I thought that the query failed because Daniel 
said that just load followed by order by will not work in this patch. 

> Improve performance of order-by
> -------------------------------
>
>                 Key: PIG-3634
>                 URL: https://issues.apache.org/jira/browse/PIG-3634
>             Project: Pig
>          Issue Type: Sub-task
>          Components: tez
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: tez-branch
>
>         Attachments: PIG-3634-0.patch, PIG-3634-1.patch, PIG-3634-2.patch
>
>
> This is a followup for PIG-3534. In PIG-3534, we use 5 vertexes (3 DAGs) to 
> implement an order-by. We can optimize to use 4 vertexes in 1 DAG:
> vertex 1: close the current vertex, create input + samples input
> vertex 2: aggregate samples to create quantiles
> vertex 3: use quantiles to partition input
> vertex 4: sort input after partition
> The DAG is:
> {code}
> vertex 1   ------------------>  vertex 3 ------> vertex 4
>            \--> vertex 2 ---/
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to