Skip to content

Commit

Permalink
Fix HiveContextCompatibilitySuite not to try drop current db.
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjoon-hyun committed Jul 9, 2016
1 parent 8aa1c2d commit 805b2f7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class HiveContextCompatibilitySuite extends SparkFunSuite with BeforeAndAfterEac
hc.sql("DROP TABLE mee_table")
val tables2 = hc.sql("SHOW TABLES IN mee_db").collect().map(_.getString(0))
assert(tables2.isEmpty)
hc.sql("USE default")
hc.sql("DROP DATABASE mee_db CASCADE")
val databases3 = hc.sql("SHOW DATABASES").collect().map(_.getString(0))
assert(databases3.toSeq == Seq("default"))
Expand Down

0 comments on commit 805b2f7

Please sign in to comment.