Skip to content

docs(semantic-layer): document NULL-preserving exclusion filters - #46447

Merged
rusackas merged 2 commits into
apache:masterfrom
mikebridge:docs-semantic-exclusion-provider-contract
Nov 23, 2026
Merged

rusackas merged 2 commits into
apache:masterfrom
mikebridge:docs-semantic-exclusion-provider-contract

Conversation

@mikebridge

Copy link
Copy Markdown
Member

SUMMARY

Document how semantic-view user exclusions keep rows with missing values, and what provider adapters need to support. The note describes the OR/IS_NULL filter groups, unchanged explicit-NULL and empty-selection behavior, and the result-cache protocol change.

This documentation was separated from #46377 so the extension-point documentation can receive its own code-owner review. It depends on #46377 and should land with or after that implementation; it does not change runtime behavior itself.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

No UI changes. The provider reference gains exclusion examples and an adapter compatibility warning, and updates the cache-protocol description from v1 to v2.

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@github-actions github-actions Bot added the doc Namespace | Anything related to documentation label Nov 21, 2026
@mikebridge
mikebridge marked this pull request as ready for review November 21, 2026 17:34
@codeant-ai-for-open-source

codeant-ai-for-open-source Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

CodeAnt  CodeAnt PR Risk

🟡  Medium Risk

  • The PR needs attention before merging because the documentation's NULL-preserving exclusions are not confirmed by the supplied mapper code.
  • The documented v2 cache separation is not confirmed by the supplied cache-key implementation.

Assessed commit: aecffe3330e6

@aminghadersohi aminghadersohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The exclusion, NULL-leaf and v2 cache-marker notes match the mapper and cache-key code at this head.

Nit: The SDK conformance or fixture accepts only an IN/IS_NULL group, so adapters need their own exclusion-group tests.

@mikebridge

Copy link
Copy Markdown
Member Author

Thanks @aminghadersohi, good point. The SDK conformance or fixture only exercises an IN/IS_NULL group, so it doesn't prove an adapter's own exclusion grouping.

I'll add a sentence telling adapter authors to test their exclusion groups directly, in a follow-up after this merges, so the approved text stays as reviewed.

@rusackas rusackas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @mikebridge.

@rusackas
rusackas merged commit 2a498be into apache:master Nov 23, 2026
63 checks passed
jprinet added a commit to jprinet/superset that referenced this pull request Nov 23, 2026
* origin/master: (393 commits)
  fix(a11y): name the semantic view description input (apache#46458)
  docs(semantic): explain datasource list modification eligibility (apache#46462)
  docs(semantic-layer): document NULL-preserving exclusion filters (apache#46447)
  fix(uploads): skip folder and system entries in columnar ZIP uploads (apache#45617)
  fix(i18n-es): promote 47 of the zero-context backfill entries (apache#45847)
  fix(mcp): return structured ChartError on SQLAlchemyError in get_chart_sql (apache#44351)
  fix(datasets): follow semantic view modification permissions (apache#46448)
  fix(docker): account for container memory limits in frontend-mem-nag.sh (apache#46373)
  fix(reports): carry the report's native filters in the email and Slack link (apache#46062)
  fix(explore): apply the dataset timezone to grained temporal filter values (apache#46175)
  fix(i18n): enforce the do-not-translate registry across the catalogs (apache#45974)
  chore(logging): log unparseable virtual dataset SQL at debug in the RLS lookup (apache#46139)
  fix(i18n): split parameter-suggestion plural into two messages (apache#46049)
  test(partition-mapping): cover Hive/Impala mirrored SQL, cache outage and migration (apache#46319)
  perf(dashboard): look up the dashboard once per filter_state read (apache#46314)
  fix(i18n): load the dayjs locale for every language with a catalog (apache#45982)
  test(semantic-layer): make date export parametrization deterministic (apache#46449)
  fix(oauth2): idempotent OAuth2 completion and resilient listener (apache#40292)
  fix(explore): prevent full table scan when SQL expression is used as x-axis (apache#41339)
  feat(mcp): radar chart type plugin (apache#43571)
  ...

# Conflicts:
#	.github/workflows/docker.yml
#	.github/workflows/superset-frontend.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Namespace | Anything related to documentation size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants