GitHub user jongyoul opened a pull request:

    https://github.com/apache/zeppelin/pull/2950

    ZEPPELIN-3432 Fix results object when throwing exception while running job

    ### What is this PR for?
    Handling the issue that `InterpretJob.jobRun()` throws an 
`InterpreterException`
    
    ### What type of PR is it?
    [Bug Fix]
    
    ### Todos
    * [x] - Change the logic to create `InterpreterResult` when throwing 
`InterpreterException`
    
    ### What is the Jira issue?
    * https://issues.apache.org/jira/browse/ZEPPELIN-3432
    
    ### How should this be tested?
    1. Enable `zeppelin.spark.sql.stacktrace` option
    2. %sql select invalid query
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? No
    * Is there breaking changes for older versions? No
    * Does this needs documentation? No


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jongyoul/zeppelin ZEPPELIN-3432

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/zeppelin/pull/2950.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2950
    
----
commit 47d693520d9922286f92d0c55ce03f069f10391e
Author: Jongyoul Lee <jongyoul@...>
Date:   2018-04-27T05:45:18Z

    Make `InterpreterJob` a public inner class to instantiate it outside of the 
class
    Set the type of `results` to InterpreterResult when exception occurred

commit 1631e600742d6efa0356c1d19798d52e1b9eb40b
Author: Jongyoul Lee <jongyoul@...>
Date:   2018-04-27T05:53:29Z

    Fix style

----


---

Reply via email to