Fix DistinctCountGroupByQueryTest Y2020 bug. (#9120)

It used data with the current timestamp alongside a query that had an end
instant of 2020-01-01.
This commit is contained in:
Gian Merlino 2020-01-02 21:10:32 -05:00 committed by GitHub
parent 4e8368a5d9
commit eb124a3068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ package org.apache.druid.query.aggregation.distinctcount;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Lists;
import org.apache.druid.data.input.MapBasedInputRow;
import org.apache.druid.java.util.common.DateTimes;
import org.apache.druid.java.util.common.Pair;
import org.apache.druid.java.util.common.granularity.Granularities;
import org.apache.druid.java.util.common.io.Closer;
@ -90,7 +91,7 @@ public class DistinctCountGroupByQueryTest extends InitializedNullHandlingTest
String visitor_id = "visitor_id";
String client_type = "client_type";
long timestamp = System.currentTimeMillis();
long timestamp = DateTimes.of("2010-01-01").getMillis();
index.add(
new MapBasedInputRow(
timestamp,