imply-cheddar commented on code in PR #15463:
URL: https://github.com/apache/druid/pull/15463#discussion_r1410575611


##########
processing/src/main/java/org/apache/druid/java/util/common/granularity/Granularity.java:
##########
@@ -290,13 +288,22 @@ public boolean hasNext()
     @Override
     public Interval next()
     {
+      if (limit <= 0) {
+        throw new IAE(
+            "Limit [%s] exceeded while iterating intervals for granularity 
[%s] and input interval [%s]",
+            limit,

Review Comment:
   Given that you are decrementing `limit`, the value interpolated into this 
log is not actually going to be that useful...



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

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to