remove check for column in shard in executeRowsShard

the check happens in executeRows and frag.rowsForColumn will panic if given a
column id not in its shard.
This commit is contained in:
Matt Jaffee 2018-09-28 10:20:48 -05:00
parent ed1b09a1cd
commit 61089981a2
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -1022,10 +1022,7 @@ func (e *executor) executeRowsShard(ctx context.Context, index string, c *pql.Ca
if columnID, ok, err := c.UintArg("column"); err != nil {
return nil, err
} else if ok {
if columnID/ShardWidth == shard {
return frag.rowsForColumnWithFilter(start, columnID, filter), nil
}
return RowIDs{}, nil
return frag.rowsForColumnWithFilter(start, columnID, filter), nil
} else {
return frag.rowsWithFilter(start, filter), nil
}