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

Fix NPE for describe of partial schema

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.13.0
    • Fix Version/s: 1.14.0
    • Component/s: None
    • Labels:

      Description

      To reproduce:

      0: jdbc:drill:drillbit=localhost> use dfs;
      +-------+----------------------------------+
      |  ok   |             summary              |
      +-------+----------------------------------+
      | true  | Default schema changed to [dfs]  |
      +-------+----------------------------------+
      1 row selected (0.849 seconds)
      0: jdbc:drill:drillbit=localhost> describe schema tmp;
      Error: SYSTEM ERROR: NullPointerException;
      
        Caused By (java.lang.NullPointerException) null
          org.apache.drill.exec.planner.sql.handlers.DescribeSchemaHandler.getPlan():84
          org.apache.drill.exec.planner.sql.DrillSqlWorker.getQueryPlan():145
          org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan():83
          org.apache.drill.exec.work.foreman.Foreman.runSQL():567
          org.apache.drill.exec.work.foreman.Foreman.run():266
          java.util.concurrent.ThreadPoolExecutor.runWorker():1149
          java.util.concurrent.ThreadPoolExecutor$Worker.run():624
          java.lang.Thread.run():748 (state=,code=0)
      
      

      The root cause is that we try to retrieve storage config by workspace name but by not actual schema name.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arina Arina Ielchiieva
                Reporter:
                arina Arina Ielchiieva
                Reviewer:
                Vitalii Diravka
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: