fix(semantic layers): apply post-processing#41601
Conversation
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41601 +/- ##
==========================================
- Coverage 64.54% 64.42% -0.13%
==========================================
Files 2665 2668 +3
Lines 146641 147200 +559
Branches 33880 33950 +70
==========================================
+ Hits 94652 94833 +181
- Misses 50271 50650 +379
+ Partials 1718 1717 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Code Review Agent Run #086e6cActionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
mikebridge
left a comment
There was a problem hiding this comment.
Approve. This faithfully mirrors the dataset post-processing flow onto semantic views, with solid behavioral tests asserting real output and pinning the empty-DataFrame no-op. Nice work.
One minor note: at superset/semantic_layers/models.py:288, the dataset path calls normalize_df before exec_post_processing (superset/models/helpers.py:1698-1718); the semantic path runs post-processing directly on the get_results DataFrame with no normalization. Pure numeric ops (contribution) are fine, but typed operations (resample, rolling, prophet) could diverge. Could you confirm semantic-view DataFrames are normalized upstream — or add a short comment noting the divergence? Not merge-blocking.
This review was generated by Claude (AI) on behalf of @mikebridge.
SUMMARY
Make sure we apply post-processing when exploring semantic views.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION