Skip to content

Commit 0b8eb7f

Browse files
Add pre-aggregates incompatibility warning for personal warehouse connections (#536)
* Add warning that pre-aggregates are incompatible with personal warehouse connections Generated-By: mintlify-agent * Simplify personal warehouse connections warning to bare bones Generated-By: mintlify-agent --------- Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
1 parent 65c119b commit 0b8eb7f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

references/pre-aggregates/overview.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ Pre-aggregates support metrics that can be re-aggregated from pre-computed resul
108108
- `max`
109109
- `average`
110110

111+
### Personal warehouse connections
112+
113+
<Warning>
114+
Pre-aggregates are **not compatible** with [personal warehouse connections](/references/workspace/personal-warehouse-connections). Materialization always runs under a single user's credentials, so warehouse-level access rules are not applied per viewer. If you rely on personal warehouse connections to enforce data access, use [results caching](/guides/developer/caching) instead.
115+
</Warning>
116+
111117
### Current limitations
112118

113119
Not all metrics work this way. Consider `count_distinct` with the same daily pre-aggregate from above. If a daily pre-aggregate stores "2 distinct customers on 2024-01-15" and "1 distinct customer on 2024-01-16", you can't sum those to get the monthly distinct count — Alice ordered on both days and would be counted twice:

0 commit comments

Comments
 (0)