mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-12 07:41:02 +00:00
add test of single = int query over multiple shards
This commit is contained in:
parent
12af1b56c3
commit
a293f864f2
1 changed files with 7 additions and 0 deletions
|
|
@ -2432,6 +2432,13 @@ func TestExecutor_Execute_Row_BSIGroup(t *testing.T) {
|
|||
} else if got, exp := result.Results[0].(*pilosa.Row).Columns(), []uint64{50, (5 * ShardWidth) + 100}; !reflect.DeepEqual(exp, got) {
|
||||
t.Fatalf("Query().Row.Columns=%#v, expected %#v", got, exp)
|
||||
}
|
||||
|
||||
// EQ (single = form) <int>
|
||||
if result, err := c[0].API.Query(context.Background(), &pilosa.QueryRequest{Index: "i", Query: `Row(foo = 20)`}); err != nil {
|
||||
t.Fatal(err)
|
||||
} else if got, exp := result.Results[0].(*pilosa.Row).Columns(), []uint64{50, (5 * ShardWidth) + 100}; !reflect.DeepEqual(exp, got) {
|
||||
t.Fatalf("Query().Row.Columns=%#v, expected %#v", got, exp)
|
||||
}
|
||||
})
|
||||
|
||||
t.Run("NEQ", func(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue