mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 20:37:52 +00:00
add test for group by with invalid filter
This commit is contained in:
parent
81d08be044
commit
ed637e6921
1 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue