From 1f370744c55d6d51eaba418ee47248eabb607c66 Mon Sep 17 00:00:00 2001 From: reesporte Date: Mon, 10 Jan 2022 15:41:30 -0600 Subject: [PATCH] add multi-shard test for distinct(timestamp) --- executor_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/executor_test.go b/executor_test.go index 432499511..990a569dd 100644 --- a/executor_test.go +++ b/executor_test.go @@ -6752,9 +6752,10 @@ func variousQueriesCountDistinctTimestamp(t *testing.T, c *test.Cluster) { c.CreateField(t, index, pilosa.IndexOptions{TrackExistence: true}, field, pilosa.OptFieldTypeTimestamp(time.Unix(0, 0), "s")) // add some data - data := []string{"2010-01-02T12:32:00Z", "2010-04-20T12:32:00Z", "2011-04-20T12:32:00Z"} + data := []string{"2010-01-02T12:32:00Z", "2010-04-20T12:32:00Z", "2011-04-20T12:59:00Z", "2011-04-20T12:40:00Z", "2011-04-20T12:32:00Z"} + for i, datum := range data { - c.Query(t, index, fmt.Sprintf("Set(%d, ts=\"%s\")", i+10, datum)) + c.Query(t, index, fmt.Sprintf("Set(%d, ts=\"%s\")", i*(1<<20), datum)) } // query the Count of Distinct vals in field ts