add test for group by with invalid filter

This commit is contained in:
Matt Jaffee 2018-12-21 17:24:44 -06:00
parent 81d08be044
commit ed637e6921
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -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 {