Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed Nov 29, 2016
1 parent 71c9dea commit 419fc79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class HiveExternalCatalogBackwardCompatibilitySuite extends QueryTest
test("make sure we can read table created by old version of Spark") {
for ((tbl, expectedSchema) <- rawTablesAndExpectations) {
val readBack = getTableMetadata(tbl.identifier.table)
assert(readBack.schema == expectedSchema)
assert(readBack.schema.sameType(expectedSchema))

if (tbl.tableType == CatalogTableType.EXTERNAL) {
// trim the URI prefix
Expand Down Expand Up @@ -235,7 +235,7 @@ class HiveExternalCatalogBackwardCompatibilitySuite extends QueryTest
sql(s"ALTER TABLE ${tbl.identifier} RENAME TO $newName")

val readBack = getTableMetadata(newName)
assert(readBack.schema == expectedSchema)
assert(readBack.schema.sameType(expectedSchema))

// trim the URI prefix
val actualTableLocation = new URI(readBack.storage.locationUri.get).getPath
Expand Down

0 comments on commit 419fc79

Please sign in to comment.