Anchal Agarwal created ZEPPELIN-5042:
----------------------------------------

             Summary: NullPointerException is thrown for the 1st query on 
presto interpreter
                 Key: ZEPPELIN-5042
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5042
             Project: Zeppelin
          Issue Type: Bug
          Components: JdbcInterpreter
    Affects Versions: 0.9.0
         Environment: Zeppelin version:  0.9.0-preview2

Presto JDBC driver version:  presto-jdbc-340

Presto version:  presto-server-323

OS: Linux
            Reporter: Anchal Agarwal
             Fix For: 0.9.0


I created a presto interpreter in the jdbc group. When I run a notebook, the 
first paragraph always fails with an NPE. Subsequent queries work fine. If I 
restart the interpreter, again the 1st query fails. If I add a query as precode 
statement to the interpreter, that too fails.
{code:java}
ERROR [2020-09-14 08:48:11,083] ({ParallelScheduler-Worker-1} 
JDBCInterpreter.java[open]:225) - zeppelin will be ignored. driver.zeppelin and 
zeppelin.url is mandatory.
ERROR [2020-09-14 08:48:11,454] ({ParallelScheduler-Worker-1} 
JDBCInterpreter.java[executeSql]:807) - Cannot run show tables in default
java.lang.NullPointerException
        at 
org.apache.zeppelin.jdbc.JDBCInterpreter.executeSql(JDBCInterpreter.java:750)
        at 
org.apache.zeppelin.jdbc.JDBCInterpreter.internalInterpret(JDBCInterpreter.java:881)
        at 
org.apache.zeppelin.interpreter.AbstractInterpreter.interpret(AbstractInterpreter.java:47)
        at 
org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:110)
        at 
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:776)
        at 
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:668)
        at org.apache.zeppelin.scheduler.Job.run(Job.java:172)
        at 
org.apache.zeppelin.scheduler.AbstractScheduler.runJob(AbstractScheduler.java:130)
        at 
org.apache.zeppelin.scheduler.ParallelScheduler.lambda$runJobInScheduler$0(ParallelScheduler.java:39)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to