You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by ji...@apache.org on 2020/01/03 16:59:52 UTC
[druid] branch 0.17.0 updated: Fix DistinctCountGroupByQueryTest
Y2020 bug. (#9120) (#9121)
This is an automated email from the ASF dual-hosted git repository.
jihoonson pushed a commit to branch 0.17.0
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/0.17.0 by this push:
new 1cc6aed Fix DistinctCountGroupByQueryTest Y2020 bug. (#9120) (#9121)
1cc6aed is described below
commit 1cc6aed4910f14f18f69c82b12fab0757a6c3863
Author: Gian Merlino <gi...@gmail.com>
AuthorDate: Fri Jan 3 11:59:38 2020 -0500
Fix DistinctCountGroupByQueryTest Y2020 bug. (#9120) (#9121)
It used data with the current timestamp alongside a query that had an end
instant of 2020-01-01.
---
.../query/aggregation/distinctcount/DistinctCountGroupByQueryTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/extensions-contrib/distinctcount/src/test/java/org/apache/druid/query/aggregation/distinctcount/DistinctCountGroupByQueryTest.java b/extensions-contrib/distinctcount/src/test/java/org/apache/druid/query/aggregation/distinctcount/DistinctCountGroupByQueryTest.java
index 08c2869..6c7db8e 100644
--- a/extensions-contrib/distinctcount/src/test/java/org/apache/druid/query/aggregation/distinctcount/DistinctCountGroupByQueryTest.java
+++ b/extensions-contrib/distinctcount/src/test/java/org/apache/druid/query/aggregation/distinctcount/DistinctCountGroupByQueryTest.java
@@ -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,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org