[ https://issues.apache.org/jira/browse/DRILL-589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13984847#comment-13984847 ]
Ramana Inukonda Nagaraj commented on DRILL-589: ----------------------------------------------- Full plan, was truncated earlier ScreenPrel: rowcount = 10.0, cumulative cost = {518.8342956229998 rows, 144.0 cpu, 0.0 io}, id = 23174 SingleMergeExchangePrel(sort0=[0 DESC]): rowcount = 10.0, cumulative cost = {517.8342956229998 rows, 143.0 cpu, 0.0 io}, id = 23173 SortPrel(sort0=[$0], dir0=[DESC]): rowcount = 10.0, cumulative cost = {516.8342956229998 rows, 142.0 cpu, 0.0 io}, id = 23172 StreamAggPrel(group=[{0}], EXPR$1=[AVG($1)]): rowcount = 10.0, cumulative cost = {498.4136148790474 rows, 141.0 cpu, 0.0 io}, id = 23171 SortPrel(sort0=[$0], dir0=[ASC]): rowcount = 100.0, cumulative cost = {488.4136148790474 rows, 141.0 cpu, 0.0 io}, id = 23170 HashToRandomExchangePrel(dist0=[[$0]]): rowcount = 100.0, cumulative cost = {120.0 rows, 131.0 cpu, 0.0 io}, id = 23169 ProjectPrel(age=[$1], gpa=[$2]): rowcount = 100.0, cumulative cost = {110.0 rows, 121.0 cpu, 0.0 io}, id = 23168 ScanPrel(table=[[dfs, drillTestDirP1, student]]): rowcount = 100.0, cumulative cost = {100.0 rows, 101.0 cpu, 0.0 io}, id = 23004 > order by desc fails on a aggregate query > ---------------------------------------- > > Key: DRILL-589 > URL: https://issues.apache.org/jira/browse/DRILL-589 > Project: Apache Drill > Issue Type: Bug > Reporter: Ramana Inukonda Nagaraj > > 0: jdbc:drill:schema=dfs.drillTestDirP1> explain plan for select age,avg(gpa) > from student group by age order by age desc; > +------------+------------+ > | text | json | > +------------+------------+ > | ScreenPrel: rowcount = 10.0, cumulative cost = {518.8342956229998 rows, > 144.0 cpu, 0.0 io}, id = 16464 > SingleMergeExchangePrel(sort0=[0 DESC]): rowcount = 10.0, cumulative cost = > {517.8342956229998 rows, 143.0 cpu, 0.0 io}, id = 16463 > SortPrel(sort0=[$0], dir0 | > +------------+------------+ > 1 row selected (0.088 seconds) > 0: jdbc:drill:schema=dfs.drillTestDirP1> select age,avg(gpa) from student > group by age order by age desc; > Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while > running query.[error_id: "ce694964-2792-4e22-b253-75884b6ba57b" > 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.IntVector cannot be cast to > org.apache.drill.exec.vector.Float8Vector ]" > ] > Error: exception while executing query (state=,code=0) > Default order by which is asc works. -- This message was sent by Atlassian JIRA (v6.2#6252)