Skip to content

Commit

Permalink
[hotfix] Fix confusing error message in TableSourceValidation
Browse files Browse the repository at this point in the history
This closes apache#10263 .
  • Loading branch information
link3280 authored and tisonkun committed Nov 20, 2019
1 parent dde6b62 commit 0bdcec9
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,11 @@ private static void validateLogicalTypeEqualsPhysical(
ResolvedField resolvedField = resolveField(fieldName, tableSource);
if (!resolvedField.getType().equals(logicalType)) {
throw new ValidationException(String.format(
"Type %s of table field '%s' does not " +
"match with type '%s; of the field '%s' of the TableSource return type.",
"Type '%s' of table field '%s' does not match with type '%s' of field '%s' of the TableSource.",
logicalType,
resolvedField.getType(),
fieldName,
resolvedField.getType()));
resolvedField.getType(),
resolvedField.getName()));
}
}

Expand Down

0 comments on commit 0bdcec9

Please sign in to comment.