Skip to content

docs: document partition filter mapping - #43760

Closed
hughhhh wants to merge 1 commit into
hughhhh/pfm-3-preview-and-editorfrom
hughhhh/pfm-4-docs
Closed

hughhhh wants to merge 1 commit into
hughhhh/pfm-3-preview-and-editorfrom
hughhhh/pfm-4-docs

Conversation

@hughhhh

@hughhhh hughhhh commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

Stack (review bottom-up):

  1. feat(datasets): add partition filter mapping model, migration and validation #43757 — model, migration, serialization, validation
  2. feat(datasets): mirror filters onto the partition column at query time #43758 — query rewrite + evaluator
  3. feat(datasets): add partition mapping preview endpoint and editor plumbing #43759 — preview endpoint + editor plumbing
  4. docs: document partition filter mapping #43760 — docs

SUMMARY

Fourth of four. Documents partition filter mapping for admins: configuration, the operator matrix, and — deliberately — the parts a reader will reasonably assume the feature covers but it does not.

Two sections carry most of the weight:

"Transform preserves ordering" explains why the checkbox exists at all, with hour() as the worked example. It's a perfectly reasonable partition transform on a TIMESTAMP column, and mirroring a time range through it returns wrong numbers — hour('2026-01-01 23:00') is greater than hour('2026-01-02 01:00') even though the first instant is earlier.

"The assumption this rests on" states the invariant plainly. Superset emits a predicate on the partition column standing in for one on the mapped column, which is only valid if partition_column = transform(mapped_column) for every row. Superset cannot verify that — it's a property of whatever ETL populates the partition column — and when it breaks the result is quietly wrong charts rather than an error. The docs say so rather than letting people discover it.

Also documented as explicit non-coverage, because each one will otherwise surprise someone who expects "the dataset is now pruned": filter-value dropdowns don't prune, RLS predicates and custom SQL WHERE clauses don't mirror, and columns with an active advanced data type don't mirror.

docs/static/feature-flags.json was regenerated in PR 1, where the flag is introduced.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A — docs only.

TESTING INSTRUCTIONS

cd docs && npm run build

Or read docs/admin_docs/configuration/partition-filter-mapping.mdx directly. The page is picked up automatically by the auto-generated configuration sidebar.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
  • Introduces new feature or API
  • Removes existing feature or API

Fourth of four. Covers configuration, the operator matrix, and the parts a
reader will reasonably assume the feature covers but it does not.

Two sections carry most of the weight. "Transform preserves ordering" explains
why the checkbox exists at all, with `hour()` as the worked example -- it is a
perfectly reasonable partition transform and mirroring a range through it
returns wrong numbers. And "The assumption this rests on" states the invariant
plainly: Superset emits a predicate on the partition column standing in for one
on the mapped column, which is only valid if the ETL keeps the two in step.
Superset cannot verify that, and when it breaks the result is quietly wrong
charts rather than an error, so the docs say so rather than letting people
discover it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@bito-code-review

bito-code-review Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Bito Automatic Review Skipped - Branch Excluded

Bito didn't auto-review because the source or target branch is excluded from automatic reviews.
No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the branch exclusion settings here, or contact your Bito workspace admin at [email protected].

@netlify

netlify Bot commented Sep 1, 2026

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 20fd771
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a96cbc43f85f60008d1222c
😎 Deploy Preview https://deploy-preview-43760--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hughhhh

hughhhh commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

Folding this into #43832 so the docs and the editor UI they describe ship together.

The docs commit (20fd771) is already in hughhhh/pfm-5-editor-ui's history, so nothing is lost — #43832 now carries both, and its base moves to hughhhh/pfm-3-preview-and-editor.

The reason: this page instructs operators to pick a Partition column in the dataset editor and refers to "the editor's preview panel". Those controls land in #43832. Merging this first would publish instructions for controls that do not exist yet.

@hughhhh

hughhhh commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

Correction to my note above: the combined PR is #43891, not #43832. GitHub will not let a PR that is part of a stack change its base, so #43832 was closed and reopened as #43891 against hughhhh/pfm-3-preview-and-editor — same branch, same commits.

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 review:draft size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants