From f51ff4dc85fe46b589aa1f0dffe48cbc56674f13 Mon Sep 17 00:00:00 2001 From: nagamocha3000 Date: Mon, 18 Jan 2021 20:54:31 +0300 Subject: [PATCH] Add tests for Rows() on time fields --- executor_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/executor_test.go b/executor_test.go index 10db42a63..613cd99c2 100644 --- a/executor_test.go +++ b/executor_test.go @@ -6921,6 +6921,18 @@ austin,1,0 toronto,1,0 `, }, + { // 2020 & 2019 All + query: `Rows(places_visited, from='2019-01-01T00:00', to='2020-12-31T23:59')`, + csvVerifier: "nairobi\nparis\naustin\ntoronto\nmombasa\nsydney\n", + }, + { // 2019 All + query: `Rows(places_visited, from='2019-01-01T00:00', to='2019-12-31T23:59')`, + csvVerifier: "nairobi\nparis\naustin\ntoronto\n", + }, + { // 2019 January only + query: `Rows(places_visited, from='2019-01-01T00:00', to='2019-02-01T00:00')`, + csvVerifier: "nairobi\nparis\naustin\ntoronto\n", + }, { query: "Count(All())", qrVerifier: func(t *testing.T, resp pilosa.QueryResponse) {