Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5290

NPE on empty dynamic form input

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.1, 0.10.0
    • None
    • None

    Description

      Try to run the following paragraphs:

       

      %spark.sql
      select * from (
       select "foo" as a
      ) 
      where (a = '${search}' or '${search}' = '')
      

      Observed effect: NPE as follow

      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)
      

      Expected effect: Zeppelin does not produce an NPE that the analysts can't understand.

       

       

      Attachments

        Activity

          People

            zjffdu Jeff Zhang
            vladimir.prus Vladimir Prus
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m