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

Index out of bounds exception while performing concat()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • None
    • None

    Description

      We hit IOOB while performing concat() on a single input in DrillOptiq. Below is the stack trace:

      at java.util.ArrayList.rangeCheck(ArrayList.java:635) ~[na:1.7.0_67]
      at java.util.ArrayList.get(ArrayList.java:411) ~[na:1.7.0_67]
      at org.apache.drill.exec.planner.logical.DrillOptiq$RexToDrill.getDrillFunctionFromOptiqCall(DrillOptiq.java:373) ~[classes/:na]
      at org.apache.drill.exec.planner.logical.DrillOptiq$RexToDrill.visitCall(DrillOptiq.java:106) ~[classes/:na]
      at org.apache.drill.exec.planner.logical.DrillOptiq$RexToDrill.visitCall(DrillOptiq.java:77) ~[classes/:na]
      at org.apache.calcite.rex.RexCall.accept(RexCall.java:107) ~[classes/:na]
      at org.apache.drill.exec.planner.logical.DrillOptiq.toDrill(DrillOptiq.java:74) ~[classes/:na]
      at org.apache.drill.exec.planner.common.DrillProjectRelBase.getProjectExpressions(DrillProjectRelBase.java:111) ~[classes/:na]
      at org.apache.drill.exec.planner.physical.ProjectPrel.getPhysicalOperator(ProjectPrel.java:57) ~[classes/:na]
      at org.apache.drill.exec.planner.physical.ScreenPrel.getPhysicalOperator(ScreenPrel.java:51) ~[classes/:na]
      at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.convertToPop(DefaultSqlHandler.java:392) ~[classes/:na]
      at org.apache.drill.exec.planner.sql.handlers.DefaultSqlHandler.getPlan(DefaultSqlHandler.java:167) ~[classes/:na]
      at org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan(DrillSqlWorker.java:178) ~[classes/:na]
      at org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:903) [classes/:na]
      at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:242) [classes/:na]

      Attachments

        1. DRILL-3464.patch
          7 kB
          Mehant Baid

        Activity

          People

            mehant Mehant Baid
            mehant Mehant Baid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: