Skip to content

Commit

Permalink
Index references are not applicable, only label
Browse files Browse the repository at this point in the history
  • Loading branch information
justin13601 committed Sep 24, 2024
1 parent 4c22f0c commit 2f4a84f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/aces/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,10 +1270,8 @@ def load(cls, config_path: str | Path, predicates_path: str | Path = None) -> Ta
referenced_predicates = {pred for w in windows.values() for pred in w.referenced_predicates}
referenced_predicates.add(trigger.predicate)
label_reference = [w.label for w in windows.values() if w.label]
index_reference = [w.index_timestamp for w in windows.values() if w.index_timestamp]
if label_reference or index_reference:
other_references = set(label_reference + index_reference)
referenced_predicates.update(other_references)
if label_reference:
referenced_predicates.update(set(label_reference))
current_predicates = set(referenced_predicates)
special_predicates = {ANY_EVENT_COLUMN, START_OF_RECORD_KEY, END_OF_RECORD_KEY}
for pred in current_predicates - special_predicates:
Expand Down

0 comments on commit 2f4a84f

Please sign in to comment.