Github user hvanhovell commented on a diff in the pull request:
https://github.com/apache/spark/pull/10916#discussion_r51028334
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
---
@@ -1262,6 +1263,21 @@ class HiveQuerySuite extends HiveComparisonTest with
BeforeAndAfter {
}
+ test("use database") {
+ val currentDatabase = sql("select
current_database()").first().getString(0)
+
+ sql("CREATE DATABASE hive_test_db")
+ sql("USE hive_test_db")
+ assert("hive_test_db" == sql("select
current_database()").first().getString(0))
--- End diff --
The ```current_database()``` command is currently added in the HiveContext.
We should move this to the ```SQLContext```.
---
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]