From ed637e69219342937617ba31d10c9e5b2cb3d3c4 Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Fri, 21 Dec 2018 17:24:44 -0600 Subject: [PATCH] add test for group by with invalid filter --- executor_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/executor_test.go b/executor_test.go index 73872abff..8ac7008ab 100644 --- a/executor_test.go +++ b/executor_test.go @@ -2675,7 +2675,7 @@ func TestExecutor_Execute_Rows(t *testing.T) { } func TestExecutor_Execute_Query_Error(t *testing.T) { - c := test.MustRunCluster(t, 3) + c := test.MustRunCluster(t, 1) defer c.Close() c.CreateField(t, "i", pilosa.IndexOptions{}, "general") @@ -2711,6 +2711,10 @@ func TestExecutor_Execute_Query_Error(t *testing.T) { query: "GroupBy(Rows(field=general), limit=-1)", error: "must be positive, but got", }, + { + query: "GroupBy(Rows(field=general), filter=Rows(field=general))", + error: "unknown call: Rows", + }, } for i, test := range tests {