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

View set query fails with NPE for non-existing option

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.17.0
    • Fix Version/s: 1.18.0
    • Component/s: None
    • Labels:

      Description

      The following query fails with NPE:

      set `non-existing option`
      

      Stack trace:

      Caused by: java.lang.NullPointerException: null
      	at org.apache.drill.exec.planner.sql.handlers.SetOptionHandler.getPlan(SetOptionHandler.java:66)
      	at org.apache.drill.exec.planner.sql.DrillSqlWorker.getQueryPlan(DrillSqlWorker.java:283)
      	at org.apache.drill.exec.planner.sql.DrillSqlWorker.getPhysicalPlan(DrillSqlWorker.java:163)
      	at org.apache.drill.exec.planner.sql.DrillSqlWorker.convertPlan(DrillSqlWorker.java:140)
      	at org.apache.drill.exec.planner.sql.DrillSqlWorker.getPlan(DrillSqlWorker.java:93)
      	at org.apache.drill.exec.work.foreman.Foreman.runSQL(Foreman.java:592)
      	at org.apache.drill.exec.work.foreman.Foreman.run(Foreman.java:277)
      	... 3 common frames omitted
      

      Also, the result of the command returns option name with the same case as it was specified in the query:

      set `metastore.ENABLED`;
      +-------------------+-------+
      |       name        | value |
      +-------------------+-------+
      | metastore.ENABLED | false |
      +-------------------+-------+
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                volodymyr Vova Vysotskyi
                Reporter:
                volodymyr Vova Vysotskyi
                Reviewer:
                Paul Rogers
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: