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

Ramana Inukonda Nagaraj commented on DRILL-587:
-----------------------------------------------

Seeing this on TPCH data as well. More regularly reproducible when I have 
multiple parquet files.
>From the stack trace and the way I have been testing exchanges its narrowed 
>down to the merging receiver as part of the SingleMergeExchange. 

java.lang.ClassCastException: org.apache.drill.exec.vector.BigIntVector cannot 
be cast to org.apache.drill.exec.vector.VarBinaryVector
        
org.apache.drill.exec.test.generated.MergingReceiverGeneratorBaseGen45.doCopy(MergingReceiverTemplate.java:153)
 ~[na:na]
        
org.apache.drill.exec.physical.impl.mergereceiver.MergingRecordBatch.copyRecordToOutgoingBatch(MergingRecordBatch.java:626)
 
~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
        
org.apache.drill.exec.physical.impl.mergereceiver.MergingRecordBatch.next(MergingRecordBatch.java:229)
 
~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
        
org.apache.drill.exec.physical.impl.ScreenCreator$ScreenRoot.next(ScreenCreator.java:85)
 
~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
        
org.apache.drill.exec.work.fragment.FragmentExecutor.run(FragmentExecutor.java:83)
 
~[drill-java-exec-1.0.0-m2-incubating-SNAPSHOT-rebuffed.jar:1.0.0-m2-incubating-SNAPSHOT]
        
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[na:1.7.0_45]
        
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[na:1.7.0_45]
        java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]


> Order by on projected columns fails
> -----------------------------------
>
>                 Key: DRILL-587
>                 URL: https://issues.apache.org/jira/browse/DRILL-587
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Ramana Inukonda Nagaraj
>
> 0: jdbc:drill:schema=dfs.drillTestDirP1> explain plan for select name,age 
> from student order by age;
> +------------+------------+
> |    text    |    json    |
> +------------+------------+
> | ScreenPrel: rowcount = 100.0, cumulative cost = {508.4136148790474 rows, 
> 161.0 cpu, 0.0 io}, id = 12142
>   SingleMergeExchangePrel(sort0=[1 ASC]): rowcount = 100.0, cumulative cost = 
> {498.4136148790474 rows, 151.0 cpu, 0.0 io}, id = 12141
>     SortPrel(sort0=[$1], dir |
> +------------+------------+
> 1 row selected (0.064 seconds)
> 0: jdbc:drill:schema=dfs.drillTestDirP1> select name,age from student order 
> by age;
> Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while 
> running query.[error_id: "50315910-bb12-496f-ae39-cb4844dd0301"
> endpoint {
>   address: "drillats3.qa.lab"
>   user_port: 31010
>   control_port: 31011
>   data_port: 31012
> }
> error_type: 0
> message: "Failure while running fragment. < ClassCastException:[ 
> org.apache.drill.exec.vector.VarBinaryVector cannot be cast to 
> org.apache.drill.exec.vector.IntVector ]"
> ]
> Error: exception while executing query (state=,code=0)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to