Skip to content

Commit

Permalink
fix(dataset profiles): compatibility with older indices. (#3242)
Browse files Browse the repository at this point in the history
  • Loading branch information
rslanka authored Sep 15, 2021
1 parent 9be6d2b commit f665ffc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public List<EnvelopedAspect> getAspectValues(@Nonnull final Urn urn, @Nonnull St
final BoolQueryBuilder filterQueryBuilder = ESUtils.buildFilterQuery(null);
filterQueryBuilder.must(QueryBuilders.matchQuery("urn", urn.toString()));
// NOTE: We are interested only in the un-exploded rows as only they carry the `event` payload.
filterQueryBuilder.must(QueryBuilders.termQuery(MappingsBuilder.IS_EXPLODED_FIELD, false));
filterQueryBuilder.mustNot(QueryBuilders.termQuery(MappingsBuilder.IS_EXPLODED_FIELD, true));
if (startTimeMillis != null) {
Criterion startTimeCriterion = new Criterion().setField(TIMESTAMP_FIELD)
.setCondition(Condition.GREATER_THAN_OR_EQUAL_TO)
Expand Down

0 comments on commit f665ffc

Please sign in to comment.