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
use catalogString
  • Loading branch information
zhulipeng committed Jun 2, 2020
commit 9c4b485030dbb80d0d757ef8100984a53ff7eb2b
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class StrictDataTypeWriteCompatibilitySuite extends DataTypeWriteCompatibilityBa
test("Check NullType is incompatible with all other types") {
allNonNullTypes.foreach { t =>
assertSingleError(NullType, t, "nulls", s"Should not allow writing None to type $t") { err =>
assert(err.contains(s"incompatible with ${t.simpleString}"))
assert(err.contains(s"incompatible with ${t.catalogString}"))
}
}
}
Expand Down Expand Up @@ -209,8 +209,8 @@ abstract class DataTypeWriteCompatibilityBaseSuite extends SparkFunSuite {
s"Should not allow writing $w to $r because cast is not safe") { err =>
assert(err.contains("'t'"), "Should include the field name context")
assert(err.contains("Cannot safely cast"), "Should identify unsafe cast")
assert(err.contains(s"${w.simpleString}"), "Should include write type")
assert(err.contains(s"${r.simpleString}"), "Should include read type")
assert(err.contains(s"${w.catalogString}"), "Should include write type")
assert(err.contains(s"${r.catalogString}"), "Should include read type")
}
}
}
Expand Down