GitHub user HyukjinKwon opened a pull request: https://github.com/apache/spark/pull/21780
[SPARK-23259][SQL] Clean up legacy code around hive external catalog and HiveClientImpl ## What changes were proposed in this pull request? Three legacy statements are removed by this patch: - in HiveExternalCatalog: The withClient wrapper is not necessary for the private method getRawTable. - in HiveClientImpl: There are some redundant code in both the tableExists and getTableOption method. This PR takes over https://github.com/apache/spark/pull/20425 ## How was this patch tested? Existing tests Closes #20425 You can merge this pull request into a Git repository by running: $ git pull https://github.com/HyukjinKwon/spark SPARK-23259 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21780.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 #21780 ---- commit 7688790287a86d2896390a0faf5dc2cd1b24e97c Author: hyukjinkwon <gurwls223@...> Date: 2018-07-16T03:14:08Z Clean up legacy code around hive external catalog and HiveClientImpl ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org