mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
recompute shards for cross-index calls
It turns out that we need to recompute the set of shards whenever a query is cross-index. Otherwise we get partial results in unexpected ways sometimes.
This commit is contained in:
parent
36ef82d7ac
commit
d79ecbad86
1 changed files with 2 additions and 0 deletions
|
|
@ -317,6 +317,8 @@ func (e *executor) handlePreCalls(ctx context.Context, index string, c *pql.Call
|
|||
if newIndex != "" && newIndex != index {
|
||||
c.Type = pql.PrecallGlobal
|
||||
index = newIndex
|
||||
// we need to recompute shards, then
|
||||
shards = nil
|
||||
}
|
||||
if c.Type == pql.PrecallNone {
|
||||
// otherwise, handle the children
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue