GitHub user andrewor14 opened a pull request:
https://github.com/apache/spark/pull/11433
[SPARK-13571] [SQL] Track current database in SQLContext
## What changes were proposed in this pull request?
Add `get/setCurrentDatabase` methods to the internal catalog. This was
already available in Hive, so we should do it for `SQLContext` too so we can
merge the two contexts one day.
I also added this functionality in `catalog.InMemoryCatalog`, which is not
currently used yet.
## How was this patch tested?
Existing Jenkins tests + new test in `CatalogTestCases`
(If this patch involves UI changes, please attach a screenshot; otherwise,
remove this)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/andrewor14/spark track-current-database
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/11433.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 #11433
----
commit 660717166b26da728864b7a905a0e61a7d5a3627
Author: Andrew Or <[email protected]>
Date: 2016-02-29T19:32:24Z
Implement get/set current database
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]