mihaibudiu commented on code in PR #5251:
URL: https://github.com/apache/calcite/pull/5251#discussion_r3965390032
##########
core/src/main/java/org/apache/calcite/rel/rules/DateRangeRules.java:
##########
@@ -482,6 +552,10 @@ RexNode compareExtract(SqlKind comparison, RexNode operand,
c = (Calendar) r.lowerEndpoint().clone();
int i = 0;
while (next(c, timeUnit, v, r, i++ > 0)) {
+ if (!rangeExpansionLimiter.tryAddRange()) {
+ rangeExpansionLimiter.reset(rangeCountMark);
Review Comment:
the question was why is this the right value to reset to?
--
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]