Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
gatorsmile committed Jun 22, 2016
1 parent a1ae724 commit 635046a
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,18 +537,18 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with TestHiv
}

test("path required error") {
assert(
intercept[AnalysisException] {
sparkSession.catalog.createExternalTable(
"createdJsonTable",
"org.apache.spark.sql.json",
Map.empty[String, String])

table("createdJsonTable")
}.getMessage.contains("Unable to infer schema"),
"We should complain that path is not specified.")
withTable("createdJsonTable") {
assert(
intercept[IllegalArgumentException] {
sparkSession.catalog.createExternalTable(
"createdJsonTable",
"org.apache.spark.sql.json",
Map.empty[String, String])

sql("DROP TABLE IF EXISTS createdJsonTable")
table("createdJsonTable")
}.getMessage.contains("'path' is not specified"),
"We should complain that path is not specified.")
}
}

test("scan a parquet table created through a CTAS statement") {
Expand Down

0 comments on commit 635046a

Please sign in to comment.