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

decimal division throw ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • Functions - Drill
    • None

    Description

      #Wed Jun 25 11:18:26 PDT 2014
      git.commit.id.abbrev=79c1502

      The following decimal division query used to work but throws exception now, so it's a regression.

      0: jdbc:drill:schema=dfs> select cast('999999999' as decimal(9,0)) / cast('0.000000000000000000000000001' as decimal(28,28)) from data limit 1;
      Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "3e7c3e36-76f4-43c0-b051-b15f3082722e"
      endpoint {
      address: "qa-node117.qa.lab"
      user_port: 31010
      control_port: 31011
      data_port: 31012
      }
      error_type: 0
      message: "Failure while running fragment. < ArrayIndexOutOfBoundsException:[ -4 ]"
      ]
      Error: exception while executing query (state=,code=0)

      Attachments

        1. DRILL-1074.patch
          6 kB
          Mehant Baid

        Activity

          People

            DrillCommitter DrillCommitter
            cchang@maprtech.com Chun Chang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: