mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 19:37:51 +00:00
fix interface{} -> bool err
This commit is contained in:
parent
d960d2fda9
commit
53c1fb6bbe
1 changed files with 7 additions and 1 deletions
|
|
@ -2005,7 +2005,13 @@ 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
|
||||
//return result.(bool), err
|
||||
}
|
||||
|
||||
// executeSetRowShard executes a SetRow() call for a single shard.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue