From b3b29fad47d4434b8d62669d3aa1ec6dbe9838e4 Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Fri, 25 May 2018 17:12:56 -0500 Subject: [PATCH] correct bug where slices were being ignored --- executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executor.go b/executor.go index a86f2367e..96f36dab5 100644 --- a/executor.go +++ b/executor.go @@ -82,7 +82,7 @@ func (e *Executor) Execute(ctx context.Context, index string, q *pql.Query, slic // If slices are specified, then use that value for slices. If slices aren't // specified, then include all of them. - if needsSlices { + if len(slices) == 0 && needsSlices { // Round up the number of slices. idx := e.Holder.Index(index) if idx == nil {