abhishekrb19 commented on code in PR #15015:
URL: https://github.com/apache/druid/pull/15015#discussion_r1330971015
##########
server/src/main/java/org/apache/druid/server/http/RulesResource.java:
##########
@@ -181,4 +186,37 @@ private List<AuditEntry> getRuleHistory(
return auditManager.fetchAuditHistory(AUDIT_HISTORY_TYPE, theInterval);
}
+ /**
+ * Validate rules. Throws an exception if a rule contain an interval that
will overshadow another rules' interval.
+ * Rules that will be evaluated at some point are considered to be
non-overshadowing.
+ * @param rules Datasource rules.
+ */
+ private void validateRules(final List<Rule> rules)
Review Comment:
Good idea. Moved it to `Rules` class.
--
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]