Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-589

order by desc fails on a aggregate query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            inramana Ramana Inukonda Nagaraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: