ryukobayashi commented on code in PR #5624: URL: https://github.com/apache/hive/pull/5624#discussion_r2178941628
########## ql/src/java/org/apache/hadoop/hive/ql/udf/UDFSubstr.java: ########## @@ -96,53 +97,51 @@ private Text evaluateInternal(Text t, int pos, int len) { return r; } - String s = t.toString(); - int[] index = makeIndex(pos, len, s.length()); - if (index == null) { + byte[] utf8String = t.toString().getBytes(); Review Comment: Ah, OK. I will fix it. -- 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. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org