Skip to content

Commit

Permalink
Fix for issue kairosdb#48 "QueryBuilder.setStart(*) should not valida…
Browse files Browse the repository at this point in the history
…te whether time is in the future". I removed the validate so data points can be queried in the future.
  • Loading branch information
jsabin committed Mar 4, 2017
1 parent 1c39647 commit 5349686
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public B setStart(Date start)
checkArgument(startRelative == null, "Both relative and absolute start times cannot be set.");

this.startAbsolute = start.getTime();
checkArgument(startAbsolute <= System.currentTimeMillis(), "Start time cannot be in the future.");
return (B) this;
}

Expand All @@ -111,7 +110,6 @@ public B setStart(int duration, TimeUnit unit)
checkArgument(startAbsolute == null, "Both relative and absolute start times cannot be set.");

startRelative = new RelativeTime(duration, unit);
checkArgument(startRelative.getTimeRelativeTo(System.currentTimeMillis()) <= System.currentTimeMillis(), "Start time cannot be in the future.");
return (B) this;
}

Expand Down

0 comments on commit 5349686

Please sign in to comment.