Repository navigation
fix(semantic-layer): keep NULL rows in user exclusion filters #46377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
09701e0
6b75097
30dea0e
f357580
a0e416c
bd1d0a3
20c6083
588a216
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -684,7 +684,7 @@ def _annotation_cache_context( # noqa: C901 | |
| context: dict[str, Any] = { | ||
| "user_id": get_user_id(), | ||
| "source_rls": source_rls, | ||
| "semantic_filter_protocol": "semantic-null-filters-v1", | ||
| "semantic_filter_protocol": "semantic-null-filters-v2", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a blocker, and I might be missing the intent.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right: the annotation context includes the marker for ordinary datasets too, so a dataset chart with a native annotation layer also gets a one-time rebuild. The docs now say so in a0e416c; cache-key behavior itself is unchanged by the follow-up. |
||
| "source_versions": metadata_versions, | ||
| } | ||
| # Omit optional components when empty to preserve unaffected key bytes. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker, and +1 to @aminghadersohi's note below on the provider contract. One measured case for this sentence: a provider that accepts
!=orNOT INas a leaf but rejects groups goes from answering to refusing. The in-repo E2E stub (tests/e2e_extensions/semantic_stub) is one, since it rejects everyOrFilter: both filters return 200 before this change and 400 with it. Could we add anUPDATING.mdline, like the earlier semantic NULL filter change and the dataset!=/NOT LIKEchange both got, and teach the stub groups here or in a follow-up?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the
UPDATING.mdcompatibility line in a0e416c.You're right that the stub rejects every OR group. Teaching it grouped predicates is left as a separate follow-up rather than changing provider execution in this docs/test patch.