fix(tesseract): CASE handling fixes in multi-stage measures#10764
fix(tesseract): CASE handling fixes in multi-stage measures#10764waralexrom merged 4 commits intomasterfrom
Conversation
|
Claude finished @waralexrom's task in 2m 43s —— View job Code Review: fix(tesseract): CASE handling fixes in multi-stage measures
SummaryThis PR fixes a correctness bug in how multi-stage CASE/SWITCH measures generate leaf CTEs. The core issue: when the same dependency (e.g., What ChangedRoot Cause Fix ( The new approach is a two-pass design:
This correctly handles:
Schema Fix ( Tests: Removed Code QualityThe refactored code is cleaner than the original (the Potential Issues
VerdictLooks good. The fix is correct, well-structured, and properly tested. The two-pass approach cleanly solves the dependency merging problem that the old per-branch iteration couldn't handle. The snapshot results (e.g., 375/600/750 for weighted amounts across all statuses) match expected behavior. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10764 +/- ##
=======================================
Coverage 78.78% 78.78%
=======================================
Files 466 466
Lines 92061 92061
Branches 3383 3383
=======================================
+ Hits 72527 72532 +5
+ Misses 19042 19037 -5
Partials 492 492
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ovr
left a comment
There was a problem hiding this comment.
Nit: about usage of Result instead of panic, otherwise LGMT 👍
Check List