Skip to content
Closed
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -369,16 +369,14 @@ abstract class ParquetQuerySuite extends QueryTest with ParquetTest with SharedS
}

withSQLConf(SQLConf.IGNORE_CORRUPT_FILES.key -> sqlConf) {
withSQLConf(SQLConf.IGNORE_CORRUPT_FILES.key -> "false") {
val exception = intercept[SparkException] {
testIgnoreCorruptFiles(options)
}.getCause
assert(exception.getMessage().contains("is not a Parquet file"))
val exception2 = intercept[SparkException] {
testIgnoreCorruptFilesWithoutSchemaInfer(options)
}.getCause
assert(exception2.getMessage().contains("is not a Parquet file"))
}
val exception = intercept[SparkException] {
testIgnoreCorruptFiles(options)
}.getCause
assert(exception.getMessage().contains("is not a Parquet file"))
val exception2 = intercept[SparkException] {
testIgnoreCorruptFilesWithoutSchemaInfer(options)
}.getCause
assert(exception2.getMessage().contains("is not a Parquet file"))
}
}
}
Expand Down