AggregateDataConfiguration
org.sagebionetworks.repo.model.AggregateDataConfiguration
The configuration the ACT binds to a source when its DataType is AGGREGATE_DATA. It controls the minimum number of matching rows required before an aggregate result is returned and how facet counts are post-processed.
| Field | Type | Description |
|---|---|---|
| suppressionThreshold | INTEGER | The minimum number of matching rows required before an aggregate result is returned. An aggregate query that matches a non-zero row count below this threshold is suppressed. Must be a positive value. This is also the k value enforced by cell-level k-anonymity: a participant-count cell whose value is non-zero but below this threshold is suppressed. |
| quasiIdentifierColumnNames | ARRAY<STRING> | The names of the columns of the source that are quasi-identifiers (QIDs), including any direct participant identifier. Optional: when omitted, the source is restricted to aggregate-only reads (no row-level data is ever returned, and the total count is gated against the suppression threshold). When provided, the source additionally allows row-returning aggregate queries with cell-level k-anonymity applied. Each name must match an actual column name of the source; at query time, if any configured QID name does not match a column of the source, an exception is thrown. A QID column may only appear in a query as the argument of a COUNT (or COUNT DISTINCT) or in a WHERE clause. Any other use (bare projection, a non-count aggregate, GROUP BY, ORDER BY, SELECT DISTINCT, or an arithmetic/string expression) is permitted only for the aggregate-only response (the gated total count and obscured facet statistics); a query that both uses a QID in one of those ways and requests row results is rejected with an error identifying the offending use. |
| countSuppressionStrategy | AggregateCountSuppressionStrategy | Selects how a query that returns rows from an aggregate-only source treats a participant-count cell whose value is non-zero but below the suppression threshold (k). A count of exactly zero is never suppressed under either strategy. The ACT chooses the strategy per source based on what a given case requires. |
| approvedVirtualTableIds | ARRAY<STRING> | The IDs of the VirtualTables the ACT approves for aggregate-only reads of this source, for example 'syn123'. Each ID must identify a VirtualTable and must not include a version. A caller with aggregate-only access may query only a VirtualTable on this list, referenced without a version; any other object, including a MaterializedView or the source itself, is refused. Optional: when omitted or empty, no aggregate-only read of this source is allowed. Approving an ID does not lock the content of the VirtualTable, so before approving one the ACT must confirm that only trusted staff hold UPDATE or CHANGE_PERMISSIONS on the VirtualTable and on every object its defining SQL reads. |
| facetPostProcessingConfig | FacetPostProcessingConfig | Configuration describing how facet counts are post-processed for an aggregate-only query. |