Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.17.0
-
None
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
- links to