Skip to content

Commit

Permalink
[cdc] Improve exception message (apache#2271)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzelin authored Nov 7, 2023
1 parent 1972d33 commit c74987b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,11 @@ protected void applySchemaChange(
case EXCEPTION:
throw new UnsupportedOperationException(
String.format(
"Cannot convert field %s from type %s to %s",
updateColumnType.fieldName(), oldType, newType));
"Cannot convert field %s from type %s to %s of Paimon table %s.",
updateColumnType.fieldName(),
oldType,
newType,
identifier.getFullName()));
}
} else if (schemaChange instanceof SchemaChange.UpdateColumnComment) {
catalog.alterTable(identifier, schemaChange, false);
Expand Down

0 comments on commit c74987b

Please sign in to comment.