mirror of https://github.com/apache/druid.git
fix flawed interval overlap rule test
fails around month end
This commit is contained in:
parent
db08640efc
commit
d0290b1975
|
@ -83,7 +83,7 @@ public class PeriodLoadRule extends LoadRule
|
||||||
@Override
|
@Override
|
||||||
public boolean appliesTo(DataSegment segment)
|
public boolean appliesTo(DataSegment segment)
|
||||||
{
|
{
|
||||||
final Interval currInterval = new Interval(new DateTime().minus(period), period);
|
final Interval currInterval = new Interval(period, new DateTime());
|
||||||
return currInterval.overlaps(segment.getInterval());
|
return currInterval.overlaps(segment.getInterval());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue