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
use catalogString
  • Loading branch information
zhulipeng committed May 28, 2020
commit 77c7eef56ba7edaa4fee9bc8f6b5ac471d0806d7
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ object DataType {

case (w: AtomicType, r: AtomicType) if storeAssignmentPolicy == STRICT =>
if (!Cast.canUpCast(w, r)) {
addError(s"Cannot safely cast '$context': ${w.simpleString} to ${r.simpleString}")
addError(s"Cannot safely cast '$context': ${w.catalogString} to ${r.catalogString}")
false
} else {
true
Expand All @@ -467,7 +467,7 @@ object DataType {

case (w: AtomicType, r: AtomicType) if storeAssignmentPolicy == ANSI =>
if (!Cast.canANSIStoreAssign(w, r)) {
addError(s"Cannot safely cast '$context': ${w.simpleString} to ${r.simpleString}")
addError(s"Cannot safely cast '$context': ${w.catalogString} to ${r.catalogString}")
false
} else {
true
Expand All @@ -478,7 +478,7 @@ object DataType {

case (w, r) =>
addError(s"Cannot write '$context': " +
s"${w.simpleString} is incompatible with ${r.simpleString}")
s"${w.catalogString} is incompatible with ${r.catalogString}")
false
}
}
Expand Down