mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
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:
parent
4e8368a5d9
commit
eb124a3068
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user