egor-ryashin commented on a change in pull request #7334: Add "REVERSE" / 
"REPEAT" / "RIGHT" / "LEFT" functions
URL: https://github.com/apache/incubator-druid/pull/7334#discussion_r268997338
 
 

 ##########
 File path: 
core/src/main/java/org/apache/druid/java/util/common/StringUtils.java
 ##########
 @@ -399,7 +399,13 @@ public static String repeat(String s, int count)
       return new String(single, StandardCharsets.UTF_8);
     }
     if (Integer.MAX_VALUE / count < len) {
-      throw new OutOfMemoryError();
+      String errMsg = StringUtils.format(
 
 Review comment:
   I would go for a concise one `The produced string is too large.` I think a 
general Druid user is smart enough to understand it right away.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to