feat(schema-compiler)!: Remove deprecated running_total measure type#11044
feat(schema-compiler)!: Remove deprecated running_total measure type#11044ovr wants to merge 2 commits into
Conversation
The running_total measure type was deprecated in v0.33.39 in favor of a
rolling_window with an unbounded trailing window. Remove it fully from both
query engines so it is now rejected at validation.
- CubeValidator: drop runningTotal from the measure-type enums (rejected)
- BaseMeasure/BaseQuery/BigqueryQuery: remove the runningTotal join condition
and aggregation handling; isCumulative now keys off rollingWindow
- cubesqlplanner: remove AggregationType::RunningTotal, RollingWindowType::
RunningTotal, MultiStageRollingWindowType::RunningTotal, the RollingTotal
join condition, and is_running_total()
- cubesql: drop the runningTotal -> Double column-type mapping
- Remove deprecated-type tests/fixtures/snapshots (measures named
runningTotal that use count/sum + rolling_window are the recommended
replacement and are kept)
- DEPRECATION.md: mark Removed in v1.7.0
BREAKING CHANGE: The running_total measure type has been removed. Data models
that use `type: running_total` will now fail validation. Replace them with a
rolling_window measure using an unbounded trailing window, e.g.
type: sum
rolling_window:
trailing: unbounded
|
Claude finished @ovr's task in 2m 8s —— View job Code ReviewVerdict: LGTM — clean, surgical removal. 0 high, 0 medium, 2 low. Details (expand)
SummaryThe PR is a clean, well-scoped removal of the long-deprecated
Cross-checked for stragglers:
Minor observations (non-blocking)
Other checks
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feat/release-v1.7.0 #11044 +/- ##
=======================================================
- Coverage 83.33% 79.09% -4.24%
=======================================================
Files 255 470 +215
Lines 77261 95772 +18511
Branches 0 3502 +3502
=======================================================
+ Hits 64382 75747 +11365
- Misses 12879 19510 +6631
- Partials 0 515 +515
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:
|
|
Claude finished @ovr's task in 44s —— View job Code Review (updated after
|
BREAKING CHANGE: The running_total measure type has been removed. Data models that use
type: running_totalwill now fail validation. Replace them with a rolling_window measure using an unbounded trailing window, e.g.