You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Ramana Inukonda Nagaraj (JIRA)" <ji...@apache.org> on 2014/04/29 20:06:20 UTC

[jira] [Created] (DRILL-589) order by desc fails on a aggregate query

Ramana Inukonda Nagaraj created DRILL-589:
---------------------------------------------

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