We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46737b5 commit 43beb4bCopy full SHA for 43beb4b
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
@@ -1266,6 +1266,11 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
1266
val currentDatabase = sql("select current_database()").first().getString(0)
1267
sql("USE test")
1268
assert("test" == sql("select current_database()").first().getString(0))
1269
+
1270
+ sql("CREATE DATABASE hive_test_db")
1271
+ sql("USE hive_test_db")
1272
+ assert("hive_test_db" == sql("select current_database()").first().getString(0))
1273
1274
sql(s"USE $currentDatabase")
1275
assert(currentDatabase == sql("select current_database()").first().getString(0))
1276
}
0 commit comments