Vladimir Prus created ZEPPELIN-5290:
---------------------------------------
Summary: NPE on empty input
Key: ZEPPELIN-5290
URL: https://issues.apache.org/jira/browse/ZEPPELIN-5290
Project: Zeppelin
Issue Type: Bug
Reporter: Vladimir Prus
Try to run the following paragraphs:
{code:java}
%spark.sql
select * from (
select "foo" as a
)
where (a = '${search}' or '${search}' = '')
{code}
Observed effect: NPE as follow
{code:java}
java.lang.NullPointerException at
org.apache.zeppelin.display.Input.getSimpleQuery(Input.java:376) at
org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:467) at
org.apache.zeppelin.notebook.Paragraph.jobRun(Paragraph.java:72) at
org.apache.zeppelin.scheduler.Job.run(Job.java:172) at
org.apache.zeppelin.scheduler.AbstractScheduler.runJob(AbstractScheduler.java:132)
at
org.apache.zeppelin.scheduler.RemoteScheduler$JobRunner.run(RemoteScheduler.java:182)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at
java.util.concurrent.FutureTask.run(FutureTask.java:266) at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
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}
Expected effect: Zeppelin does not produce an NPE that the analysts can't
understand.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)