mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-13 08:01:02 +00:00
Merge pull request #2137 from travisturner/backport-fix
fix interface{} -> bool err
This commit is contained in:
commit
8886da126f
1 changed files with 6 additions and 1 deletions
|
|
@ -2005,7 +2005,12 @@ func (e *executor) executeSetRow(ctx context.Context, index string, c *pql.Call,
|
|||
}
|
||||
|
||||
result, err := e.mapReduce(ctx, index, shards, c, opt, mapFn, reduceFn)
|
||||
return result.(bool), err
|
||||
r, ok := result.(bool)
|
||||
if !ok {
|
||||
err = errors.Wrapf(err, "mapReduce result is not bool,err:%s", err.Error())
|
||||
return false, err
|
||||
}
|
||||
return r, err
|
||||
}
|
||||
|
||||
// executeSetRowShard executes a SetRow() call for a single shard.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue