Skip to content

Commit

Permalink
Fix small logic bug in JDBCEmitter in calculating when to truncate.
Browse files Browse the repository at this point in the history
  • Loading branch information
tballison committed May 6, 2024
1 parent e172306 commit 48c934f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ private static String getHandledTypes() {
private static class StringNormalizer {

String normalize(String emitKey, String columnName, String s, int maxLength) {
if (maxLength < 0 || s.length() < maxLength) {
if (maxLength < 0 || s.length() <= maxLength) {
return s;
}
LOGGER.warn("truncating {}->'{}' from {} chars to {} chars",
Expand Down

0 comments on commit 48c934f

Please sign in to comment.