Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
modify testcase
  • Loading branch information
baishuo committed Jun 8, 2015
commit 4df48c7e4e1b5793d8c00c15b25ec9265cb8766d
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with BeforeA
}
}

test("SPARK-8156:create table to specific database by 'use dbname' ") {
test("SPARK-8157:create table to specific database by 'use dbname' ") {

val df = (1 to 3).map(i => (i, s"val_$i", i * 2)).toDF("a", "b", "c")
sqlContext.sql("""create database if not exists testdb""")
Expand All @@ -845,7 +845,7 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with BeforeA
.saveAsTable("ttt3")

checkAnswer(
sqlContext.sql("show TABLES in testdb"),
sqlContext.sql("show TABLES in testdb").filter("tableName = 'ttt3'"),
Row("ttt3", false))
sqlContext.sql("""use default""")
sqlContext.sql("""drop database if exists testdb CASCADE""")
Expand Down