cloud-fan commented on a change in pull request #32501: URL: https://github.com/apache/spark/pull/32501#discussion_r631597395
########## File path: sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/util/CharVarcharCodegenUtils.java ########## @@ -26,7 +27,7 @@ private static UTF8String trimTrailingSpaces( UTF8String inputStr, int numChars, int limit) { int numTailSpacesToTrim = numChars - limit; UTF8String trimmed = inputStr.trimTrailingSpaces(numTailSpacesToTrim); - if (trimmed.numChars() > limit) { + if (trimmed.numChars() > limit && !SQLConf.get().charVarcharAsString()) { Review comment: We don't need this now. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org