Skip to content

Commit 8403e69

Browse files
committed
[r] Increase accumulator limit for diagnoses.disease in AnVIL (#6793)
1 parent 5ddbe3e commit 8403e69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/azul/plugins/metadata/anvil/indexer/aggregate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
Accumulator,
1414
DistinctAccumulator,
1515
GroupingAggregator,
16+
SetAccumulator,
1617
SetOfDictAccumulator,
1718
SimpleAggregator,
1819
SumAccumulator,
@@ -77,6 +78,8 @@ def _accumulator(self, field: str) -> Accumulator | None:
7778
return super()._accumulator(field)
7879
else:
7980
return None
81+
elif field == 'disease':
82+
return SetAccumulator(max_size=14100)
8083
elif field in ('diagnosis_age', 'onset_age'):
8184
return SetOfDictAccumulator(max_size=100,
8285
key=compose_keys(none_safe_tuple_key(none_last=True),

0 commit comments

Comments
 (0)