From 61089981a2767b2dd0a78dce6cfca33efaf78a0f Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Fri, 28 Sep 2018 10:20:48 -0500 Subject: [PATCH] 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. --- executor.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/executor.go b/executor.go index 47b36d6f2..f83c0cbf3 100644 --- a/executor.go +++ b/executor.go @@ -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 }