GitHub user suchithjn225 opened a pull request:

    https://github.com/apache/spark/pull/20177

    [SPARK-22954][SQL] Fix the exception thrown by Analyze command on temporary 
views to throw AnalysisException

    ## What changes were proposed in this pull request?
    Previously running ANALYZE on temporary views produced NoSuchTableException 
even though the view was present. It is misleading. So it has to be changed to 
throw AnalysisException since it comes in the analysis part. 
    
    ## How was this patch tested?
    Some unit tests were fixed to intercept AnalysisException instead of 
NoSuchTableException.
    


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

    $ git pull https://github.com/suchithjn225/spark SPARK-22954-SQL

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

    https://github.com/apache/spark/pull/20177.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 #20177
    
----
commit 8e92e6c26f61ac1999d76993756b8c696e487165
Author: Suchith J N <suchithjn22@...>
Date:   2018-01-05T21:46:20Z

    [SPARK-22954][SQL] Fixed the problem where temporary views were not looked 
up by session state's catalog.

commit 4de6ac840a6b8cbd7c5795b023783b626b21a9f4
Author: Suchith J N <suchithjn22@...>
Date:   2018-01-06T19:01:37Z

    [SPARK-22954][SQL] Fixed database name lookup so that None is returned 
instead of Some('default')

commit 98b8711cdd26c25fd774f77f46fc9e395ee2cffe
Author: Suchith J N <suchithjn22@...>
Date:   2018-01-07T10:09:33Z

    [SPARK-22954][SQL] Fixed the test to test for AnalysisException instead of 
NoSuchTableException

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to