Skip to content

Commit

Permalink
Actually set the evaluation filter so that filtering works for standa…
Browse files Browse the repository at this point in the history
…rd event queries (#2701)
  • Loading branch information
apmoriarty authored Jan 22, 2025
1 parent 8ff3420 commit f1cd50b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,11 @@ public EventDataQueryFilter getEventEvaluationFilter() {
// allows standard event queries to perform a seeking aggregation with field filtering
evaluationFilter = getEventFilter();
}

if (evaluationFilter != null) {
eventEvaluationFilter = evaluationFilter.clone();
}

return eventEvaluationFilter != null ? eventEvaluationFilter.clone() : null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@
import datawave.query.CloseableIterable;
import datawave.query.Constants;
import datawave.query.QueryParameters;
import datawave.query.attributes.ExcerptFields;
import datawave.query.attributes.UniqueFields;
import datawave.query.common.grouping.GroupFields;
import datawave.query.composite.CompositeMetadata;
import datawave.query.composite.CompositeUtils;
import datawave.query.config.ScanHintRule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public EventDataQueryFieldFilter(EventDataQueryFieldFilter other) {
this.maxNextCount = other.maxNextCount;
this.fields = other.fields;
this.parser = other.parser;
this.parser.clearState();
// do not copy nextCount or currentField because that is internal state
this.nextCount = 0;
this.currentField = null;
Expand Down

0 comments on commit f1cd50b

Please sign in to comment.