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
improve test
  • Loading branch information
Ngone51 committed Nov 27, 2019
commit 617ab8ffe08083f7763d8ee1d1577d2cef134dad
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,11 @@ class FileIndexSuite extends SharedSparkSession {
wrongBasePath.mkdir()
val parameters = Map("basePath" -> wrongBasePath.getCanonicalPath)
val fileIndex = new InMemoryFileIndex(spark, Seq(path), parameters, None)
intercept[IllegalArgumentException] {
val msg = intercept[IllegalArgumentException] {
// trigger inferPartitioning()
fileIndex.partitionSpec()
}
}.getMessage
assert(msg === s"Wrong basePath ${wrongBasePath.getCanonicalPath} for the root path: $path")
}
}

Expand Down