GitHub user liufengdb opened a pull request: https://github.com/apache/spark/pull/20564
[SPARK-23378][SQL] move setCurrentDatabase from HiveExternalCatalog to HiveClientImpl ## What changes were proposed in this pull request? This enforces the rule that no calls from `HiveExternalCatalog` reset the current database in the hive client, except the `setCurrentDatabase` method. ## How was this patch tested? (Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests) (If this patch involves UI changes, please attach a screenshot; otherwise, remove this) Please review http://spark.apache.org/contributing.html before opening a pull request. You can merge this pull request into a Git repository by running: $ git pull https://github.com/liufengdb/spark move Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20564.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 #20564 ---- commit f1acb5ad9a12df11faf082144c676082df647ff9 Author: Feng Liu <fengliu@...> Date: 2018-02-10T00:18:44Z some ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org