Skip to content

Document filter operator-matching limitation for pre-aggregates - #1089

Merged
IrakliJani merged 1 commit into
mainfrom
mintlify/48a423cd
Aug 10, 2026
Merged

Document filter operator-matching limitation for pre-aggregates#1089
IrakliJani merged 1 commit into
mainfrom
mintlify/48a423cd

Conversation

@mintlify

@mintlify mintlify Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

Pre-aggregate filter matching only compares filters that use the same operator. An absolute date filter (is 2026-01-15) will not match a relative pre-aggregate filter (inThePast 30 days) even when the selected date falls inside the window, and vice versa. Queries with a mismatched operator fall back to the warehouse.

This is a known architectural limitation (no filter AST, so no true applied-filter ⊆ materialized-filter check). The docs previously described filter compatibility only as "same or narrower / broader or incompatible", and every example was same-operator (inThePast N vs inThePast M), so a reader would reasonably expect a specific date inside a rolling window to count as narrower.

Changes

  • references/pre-aggregates/overview.mdx — Added a <Warning> to the "Filtered pre-aggregates" section explaining the same-operator requirement and pointing readers to the same relative operator as the workaround.
  • references/pre-aggregates/getting-started.mdx — Added a mixed-operator counter-example (order_date is 2026-01-15 cannot use a pre-aggregate filtered inThePast 52 weeks) to the "How query matching works with filters" list, plus a <Warning> with the same detail as overview.
  • references/pre-aggregates/monitoring.mdx — Expanded the "Pre-aggregate filter not satisfied" miss-reason row to call out the same-operator requirement and swap the misleading "narrow the query filter" hint for "match the pre-aggregate filter's operator".

Context

Prompted by a Slack thread (C03MCQ08UKS) where a customer's rolling-window pre-aggregate missed on an absolute-date query, and the team confirmed this is a documented-limitation situation rather than a bug fix.


Generated by Mintlify Agent.

Requested by: irakli@lightdash.com via Slack
Mintlify session: slack_1786344251.285279_C03MCQ08UKS

@mintlify

mintlify Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lightdash 🟢 Ready View Preview Aug 10, 2026, 7:06 AM

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

🤖 Documentation Bot

All checks passed! No issues found.

@IrakliJani
IrakliJani merged commit a372c06 into main Aug 10, 2026
6 checks passed
@IrakliJani
IrakliJani deleted the mintlify/48a423cd branch August 10, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant