Skip to content

Commit

Permalink
Fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Sep 19, 2022
1 parent 390f4c8 commit 9665ac6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@ protected void applyCoercedValue(BlockBuilder blockBuilder, Block block, int pos
long value = fromType.getLong(block, position);
Slice converted = utf8Slice(String.valueOf(value));
if (!toType.isUnbounded() && countCodePoints(converted) > toType.getBoundedLength()) {
throw new TrinoException(INVALID_ARGUMENTS, format("Varchar representation of %s exceed %s bounds", value, toType));
throw new TrinoException(INVALID_ARGUMENTS, format("Varchar representation of %s exceeds %s bounds", value, toType));
}
toType.writeSlice(blockBuilder, converted);
}
Expand Down

0 comments on commit 9665ac6

Please sign in to comment.