Don't reset is first index every iteration

This commit is contained in:
Greg Burd 2017-11-02 16:12:46 -04:00
parent 864c4af5af
commit 465c7d6f2a

View file

@ -287,10 +287,10 @@ public final class SelectOperation<E> extends AbstractFilterStreamOperation<E, S
Where where = select.where(); Where where = select.where();
boolean isFirstIndex = true;
for (Filter<?> filter : filters.values()) { for (Filter<?> filter : filters.values()) {
where.and(filter.getClause(sessionOps.getValuePreparer())); where.and(filter.getClause(sessionOps.getValuePreparer()));
HelenusProperty prop = filter.getNode().getProperty(); HelenusProperty prop = filter.getNode().getProperty();
boolean isFirstIndex = true;
if (allowFiltering == false) { if (allowFiltering == false) {
switch (prop.getColumnType()) { switch (prop.getColumnType()) {
case PARTITION_KEY : case PARTITION_KEY :