Repository navigation
A quiet hour halved the next hour's Query Store rate, and three trend readers recomputed an interval the store had stored all along: rollup points are rated over their own bucket width, the query-stats trends read sample_interval_seconds three-state on both SKUs, and Compose delta aggregates FILTER out the restart marker (partial #3653: A8, A11's LAG clause, the Cumulative archetype) - #3695
Merged
Merged
Conversation
… trend readers read the interval query_stats has stored all along, and Compose delta aggregates exclude the restart marker (partial #3653: A8 rollup denominators, A11's LAG-recompute clause, the Cumulative archetype) QueryStoreTrendRouting.BuildRollupTrendSql rated every united point over a LAG to the previous EMITTED point, so a corrected-hourly bucket with no rows (a quiet hour, or an unmaterialized hole) made its neighbour's denominator 7,200 s and halved its published rate. Each point class now carries its own denominator: a rollup point is divided by the bucket width (DurationTrendRouting.HourlyBucketSecondsSql, pinned to TimescaleSupport.HourlyBucket), and is therefore never unrated; a raw point (a Query Store interval placed at its start - the store holds no interval length for it) keeps the spacing LAG, with its first-in-window point unrated as before. The MCP reader and the viewer read one builder, so both surfaces change together. DurationTrendRouting gains BuildRawTrendSql, the three-state per-collection duration trend (MAX(sample_interval_seconds) per collection; 0 -> NULL, unrated; NULL -> the LAG, pre-V128 only) that the procedure consts have carried since V128. The viewer's QueryDurationTrendSql is now that builder's output with its database filter, its ExecutionCountTrendSql reads the interval the same way, and Lite's GetQueryDurationTrendAsync / GetExecutionCountTrendAsync move to the same shape. The Query Store reads on both SKUs keep their LAG deliberately and say why (no interval column on query_store_stats). The MCP reader's own raw query-stats const is outside this PR's file boundary and is named as the residual by a must-move pin. ComposeCompiler emits FILTER (WHERE f.sample_interval_seconds IS DISTINCT FROM 0) on every raw-tier SUM/AVG/MIN/MAX over a per-interval delta column whose source is one of the ten delta families (CollectorDeltaCalculator.IsDeltaFamily - the census-pinned set): the Cumulative measures and the two Delta measures on the same tables. The aggregate's own FILTER rather than a statement WHERE, because an overlay gauge on the same rows must keep its restart-pass reading. Gauges, PerEvent, ratios, COUNT(*), Query Store's qs_executions and the CAGG route are untouched. Tests: the two-class denominator pinned as text and proven on live TimescaleDB with a planted quiet hour (25/3,600, not 25/7,200; the raw-only route's 25/7,200 residual asserted beside it); the query-stats three-state read proven on live Postgres and in-process DuckDB with rows in all three states; the compose FILTER pinned per archetype, per overlay position, on the rank CTE, and as a catalog-wide census gated on the real schema; two existing pins moved deliberately (a rollup first bucket is rated; a first collection with a STORED interval is rated).
Closed
39 tasks done
erikdarlingdata
enabled auto-merge (squash)
September 19, 2026 05:29
7 of 12 tasks
erikdarlingdata
added a commit
that referenced
this pull request
Sep 19, 2026
… after the viewer stopped; and two sentences that #3695/#3696 made false (partial #3653) (#3700) DarlingTrendReader.QueryDurationTrendSql becomes an alias of DurationTrendRouting.QueryDurationTrendRawSql(withDatabaseFilter: false), so get_query_duration_trend's raw route reads query_stats.sample_interval_seconds three-state (0 = restart, unrated; NULL = no stored interval, LAG; n = measured) exactly as the viewer's chart has since #3695. Until now the tool kept its own LAG-only copy and published a confident 0.00 ms/sec for a restart collection the viewer skipped. ProcedureDurationTrendSql (MCP and viewer) become aliases of the builder's procedure output too - #3695's line-equality pin proved that a no-op. The must-move residual pin in DarlingMcpTrendToolsTests is retired into an identity pin over the declarations (the #3684 idiom) plus a live round-trip through the real reader and the tool over a planted NULL/NULL/0/120 series. get_query_duration_trend / get_procedure_duration_trend / get_query_store_duration_trend descriptions and the instructions row say what the reads do now: plan-cache raw points are rated over the stored interval (restart = null), Query Store rollup points over their bucket width (first bucket included), only raw Query Store points LAG-rated and null-first. get_cpu_utilization's Darling note ports Lite's #3696 correction verbatim (one RING_BUFFER_SCHEDULER_MONITOR record per minute; 15 s is Azure's sys.dm_db_resource_stats); the Lite pin becomes a both-SKU theory that also asserts the two notes byte-identical.
This was referenced Sep 19, 2026
erikdarlingdata
added a commit
that referenced
this pull request
Sep 19, 2026
…ated over the gap since the previous one, the shared unrated_note named one of the two reasons a point goes unrated, and the latch/spinlock restart row was spelled two ways across SKUs: Lite's descriptions carry #3700's three-state sentences, the note names the stored-0 restart beside the first-in-window LAG byte-identically on both SKUs, and both tools on both SKUs publish the unknowable row as null rates with interval_seconds beside them (partial #3653) (#3706) Three clauses of #3653 A15/A16 plus the A11 residue, each named by a lane last night that could not touch the file. Lite/Mcp/McpQueryTools.cs get_query_duration_trend / get_procedure_duration_trend and the McpInstructions row said "a rate over the gap since the PREVIOUS point"; Lite's reads have been three-state since #3695 (query) and v61 (procedure). The descriptions now carry #3700's Darling sentences minus the hourly-route clause (Lite has one tier). get_query_store_duration_trend's description was still true (LAG-only) and is untouched. The trio's shared unrated_note said only "no previous one inside the window"; a restart collection (stored interval 0) has also been unrated on both plan-cache trends since #3695/#3700. One sentence now names both, byte-identical on both SKUs; McpMissMessageParityPinTests holds the literal, and the two substring pins (DarlingPerformanceTrendsReadTests, PerformanceTrendsToolTests) pin both reasons. Lite's get_latch_stats / get_spinlock_stats published a bare null delta on the restart row (#3702); Darling's published the raw 0 as the delta the band came from, interval_seconds: null, null rates, and a LOW severity banded from that 0. One vocabulary now: null rates + interval_seconds beside them (null when unknowable) + the latest delta null, on both tools and both SKUs. Lite gains interval_seconds and Darling's per-second pair per row; Darling's latch row gains row-level interval_seconds and nulls severity and severity_banded_from.delta_wait_time_ms on an unknowable interval; Darling's spinlock query gains the latch query's own latest_interval_seconds line so its null rates carry the why too. DarlingMcpLatchSpinlockTools.cs's class remark no longer says the delta collectors store no sample_interval_seconds (false since V127, #3595). McpPageContractTests.TheSameToolName_SpellsTheUnknowableRowTheSameWay_OnBothSkus holds the key sets equal from source; Lite's McpPageContractTests execute the three interval states over DuckDB; DarlingMcpLatchSpinlockToolsLivePostgresTests executes them over Postgres (stored 60 s rated 6000/60 not 6000/120, the LAG pair, the (0, 0) marker null on every key). Not done: the trend family's `truncated` (the #2364 window floor) is not renamed - the blast radius is ~15 consumers including get_query_store_top in DarlingMcpDataTools.cs, outside this lane. Reported.
This was referenced Sep 19, 2026
erikdarlingdata
added a commit
that referenced
this pull request
Sep 19, 2026
… not an integer; existing installs converge idempotently (#3653 item 13, Q9) (#3717) The computed column shipped as cntr_value_delta / NULLIF(sample_interval_seconds, 0). Both operands are integer types, so T-SQL truncated: seven batch requests over a 60-second interval read as 0 per second, every counter running under one event per second was a flat zero, and report.daily_summary_v2 averaged those zeros as throughput. #3658 fixed the Dashboard's READ by recomputing the rate; this is the schema half Erik approved in Q9 (integer division is a defect, so it qualifies under the frozen twin's bug-fix-only rule). install/02 and install/06's CREATE now define the column as cntr_value_delta * 1.0 / NULLIF(...), which the T-SQL precision rules make numeric(33,12) (bigint * numeric(2,1) = numeric(22,1); / integer = 33,12). Non-persisted, so metadata-only. install/06 converges an EXISTING install in two places on the is_processed precedent: an install-time block at the end of the file (the installer runs upgrades/ then every install/*.sql in order, so 06 runs before 47 re-creates the view) and a runtime branch inside config.ensure_collection_table for a caller that asks it to ensure a table that already exists. Guard predicate: the column exists in sys.computed_columns AND TYPE_NAME(system_type_id) is an integer type - the type IS the defect, and it is stable where the stored definition text (which SQL Server rewrites as ([cntr_value_delta]/nullif([sample_interval_seconds],(0)))) is not. Drop and re-add are guarded independently so an interrupted run converges next time. No index, schema-bound view or user statistics reference the column, so the DROP cannot be blocked. install/47 gets a comment, not a filter: the Full edition's delta framework does write a (0, 0) first row (the MIN(collection_id) arm makes a series' first row its own previous), but the column's own NULLIF turns that row's rate into NULL and AVG skips it, so the FILTER the PG/DuckDB tiers needed in #3695 has nothing left to exclude here. Executed against mcr.microsoft.com/mssql/server:2022-latest: old shape 7/60 -> 0; after 06, 0.116666666666 with definition (([cntr_value_delta]*(1.0))/nullif([sample_interval_seconds],(0))) numeric(33,12) is_persisted=0; second run of 06 a no-op (column_id unchanged); proc path rewrites once and logs exactly one SCHEMA_UPGRADE row, second call a no-op; interrupted state (column dropped) recovers; fresh 02 creates the real shape; full install 01-56 (minus 45) twice with 0 failures; daily_summary_v2 batch_requests_per_sec 0 -> 0.55 on the same rows. Partial #3653 - item 13 (Q9)
erikdarlingdata
added a commit
that referenced
this pull request
Sep 19, 2026
… PRs across the #3653, #3542 and #3691 waves, #3704, #3710, #3712 and #3735, spliced once (#3751) Sixty-five PRs merged to dev since #3672 (the first splice) across two seats - the coordinator's #3653 brains-review residue lanes and the wave-2 worker's #3542 / #3691 PostgreSQL-target engine lanes - and by rule none touched this file; each returned its entry to a buffer. This is the one splice. Text-only; one file; nothing outside ## [Unreleased] and the definition block moves. [Unreleased] gains a ### Changed between ### Added and ### Fixed (Keep-a-Changelog order) for the nine entries whose subject is a designed behaviour that now behaves differently - routing (#3712 confidence chooses the channel), gating (#3692 tempdb persistence, #3734 blocking/LRQ gates, #3724 peak-and-mean), the wire shape (#3719 one error envelope), the review guard's drift arm (#3673), lineage metadata (#3723) and two grading changes (#3693, #3747). Twenty-two new capabilities append to ### Added (the sixteen PostgreSQL-target fact families and rungs, CONFIG_CHANGED, the recurrence label, the V134/V135 columns, the review traps file, the measurement census); thirty-two defects append to ### Fixed. Order within each section is ascending PR number, as #3672 did. Every entry is one line and verbatim from its buffer (trailing whitespace only). Four PR pairs fold into one entry as the buffers wrote them (#3738+#3746, #3683+#3686, #3681+#3685, #3726+#3729); #3695 carries three entries. #3673 has no issue and cites none, like the file's ninety-six other ref-less entries. Five definitions added ([#3691], [#3704], [#3710], [#3712], [#3735]) at the end of the [Unreleased] run, which stays one ascending run (3517..3735). No archive touched; the split was not run. tools/changelog/changelog_archive.py verify: all PASS (1,483 bold entries, floor 1,329; 1,363 distinct refs resolve; 1,372 definitions; CRLF throughout; 409,263 bytes under the ceiling). Client-hygiene grep over the file: zero hits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three lies on one theme: a rate or an aggregate over a differenced series must use the interval the store HAS
Partial #3653 — the measurement layer's A8 Rollup rate denominators, the LAG-recompute clause of A11 assorted, and the Compose
MeasureCatalogCumulative archetype item. Three items, one lane, because they share files and they share a mechanism: each computed a denominator (or admitted a row) from something the store had never claimed — row spacing, or an unread marker — when the store was carrying the honest number beside it.A. A quiet hour halved the next hour's Query Store rate (
QueryStoreTrendRouting.BuildRollupTrendSql)The rollup-routed Query Store trend unions two point classes — corrected-hourly buckets below the materialization watermark, raw interval-placed points above it — and then rated every point over
LAG(point_time): the gap to the previous EMITTED point. A corrected-hourly bucket with no rows (no executions that hour, or an unmaterialized hole) is simply absent fromrollup_points, so the bucket after it saw a 7,200-second gap and published half its true executions/sec and duration-ms/sec. On a store whose overnight is quiet, every first busy hour of the morning read at 50%.The shape. Each united point now carries its class (
from_rollup), and theratedCTE divides on it: a rollup point over its bucket width —DurationTrendRouting.HourlyBucketSecondsSql, the same literal the query-stats hourly tier divides by, pinned equal toTimescaleSupport.HourlyBucket— and a raw point over the spacing LAG it always used. The corrected hourly carries no covered-seconds column (read fromCreateQueryStoreStatsCorrectedHourlySql:execution_count_sum, the weighted sums,sample_count, nothing about time), and a CAGG cannot be altered in place (#3653 A6), so the bucket width is the honest denominator for a bucket that IS materialized, and a bucket that is a hole produces no point — a gap in the series, which is what a quiet hour is.A consequence, stated: a rollup point is never unrated — the window's first bucket has a known denominator exactly as the query-stats hourly tier's first bucket does — so the first-point NULL of #3541 A12 is now a raw-class rule. The existing live pin (
QueryStoreTrendRoutingLiveTests: first united point unrated) is moved deliberately: that point was a rollup bucket whose denominator was known all along, and it now reads 21 / 3,600.The residual, named on the CTE rather than hidden: a raw point is a Query Store interval placed at its start, and
query_store_statsstores no interval length (it is a cumulative-snapshot source outside the ten delta families; it carriesinterval_start_time_utcbut not the width). So the raw class keeps the spacing denominator, and a quiet Query Store INTERVAL before a raw point still halves it — the new live test asserts that residual beside the fix (25 / 7,200 on the raw-only route, 25 / 3,600 on the rollup route, same rows). Removing it needs the interval length stored beside the row: a collector change and a rung, not a read change. The seam LAG (first raw point differenced against the last rollup bucket) is kept: on the defaultINTERVAL_LENGTH_MINUTES = 60it is exactly one bucket, and partitioning the LAG by class would make the most-looked-at point on a now-anchored chart unrated for nothing.B. Three trend readers LAG-recomputed an interval
query_statsstored from the startquery_stats(andprocedure_stats) have carriedsample_interval_secondssince their first rung, stamped per row by the shared delta calculator from the SAME two collection instants aLAG(collection_time)re-derives. On a steady series the two agree to the second. They differ exactly where they must: a row the calculator could not difference (first sighting, counter reset, gap past policy — in practice a restart) stores0beside a0delta, and the LAG divided that fabricated 0 by the real elapsed seconds into a confident0.00 ms/secat the instant nothing was knowable. V128 (#3540) moved the procedure trends to the stored interval and reported the query-stats copies as the A11 residual; this PR rewrites them.The shape.
DurationTrendRouting.BuildRawTrendSql(rawTable, withDatabaseFilter)— the three-state read the procedure consts already carry, built ONCE in Storage beside the hourly builder:MAX(sample_interval_seconds)per collection (a readmitted plan stores 0 beside its siblings' real interval and contributes 0 to the sums, so MAX is the measured interval and is 0 only when EVERY row was unknowable),NULLIF(…, 0)so a restart collection is UNRATED, and the LAG only for a pre-V128 collection whose MAX is NULL.COALESCE(NULLIF(sample_interval_seconds, 0), LAG)is pinned by absence — it would fall back to a fabricated interval on precisely the restart row. The viewer'sQueryDurationTrendSqlis now the builder's output with its$4filter (static readonly, like its hourly twin); itsExecutionCountTrendSqlreads the interval the same way; Lite'sGetQueryDurationTrendAsyncandGetExecutionCountTrendAsyncmove to the same shape overv_query_stats. The builder's procedure output is pinned line-equal to both hand-kept procedure consts, so it is provably the established idiom and a later alias of those consts is a no-op.Out of scope, and said so in the code: both SKUs' Query Store trends keep their LAG — no interval column on the source (a
<para>on Lite's read and theratedCTE state why). Lite'sLocalDataService.QueryStats.cs:592COALESCE(sample_interval_seconds, LAG)is a history-grid display column, not a divisor, andCOALESCEkeeps a stored 0 as 0 (only NULL is replaced) — correct for the three-state rule, not a bug.A brief claim found false, and the residual it leaves:
DarlingTrendReader.QueryDurationTrendSqlis NOT an alias ofDurationTrendRouting— #3684 aliased the hourly SQL and the tier ladder; the raw query-stats const is its own LAG-only text inDarlingTrendReader.cs, a file outside this lane's boundary. It is not edited here.DarlingMcpTrendToolsTestsnames it as the residual with a must-move pin (DoesNotContain("sample_interval_seconds")on that const), so the one-line follow-up —public static readonly string QueryDurationTrendSql = DurationTrendRouting.QueryDurationTrendRawSql(withDatabaseFilter: false)— cannot land without touching the record of why. Until it lands, the MCPget_query_duration_trendraw route and the viewer's chart differ on exactly one row class: a restart collection (MCP 0.00, viewer unrated).C. Compose averaged the restart marker in as a measured zero (
ComposeCompiler)For a
MeasureArchetype.Cumulativemeasure the compiler aggregatedDeltaColumnwith no row predicate, so a restart row's(delta 0, interval 0)marker — "nothing knowable", per the #2234 contract — was averaged in as a measured zero and became the window'sMINevery time a restart sat inside it.SUMwas indifferent (adding 0). All ten delta families carrysample_interval_secondssince V128, so the compiler can say it once.The shape — the aggregate's own
FILTER, not the statement'sWHERE.CAST(AVG(f.delta_wait_time_ms) FILTER (WHERE f.sample_interval_seconds IS DISTINCT FROM 0) AS double precision)for every raw-tierSUM/AVG/MIN/MAXwhose column is a per-interval delta on a source the delta calculator stamps. The brief suggested the compiled WHERE; the overlay (#1606) is why not: one statement aggregates its primary and its overlay over the SAME rows, andmemory_grant_statscarries a Cumulative (grant_timeouts) beside a Gauge (grant_waiters) — a WHERE would drop the restart row's real waiter reading along with the delta's marker, and a Gauge primary beside a Cumulative overlay would filter neither. The FILTER is scoped to the one aggregate the marker poisons, binds nothing (the$norder is untouched), and the RankedTimeSeries rank CTE inherits it through the same expression builder so membership is ranked over measured rows.Which measures. "Carries the column" is
CollectorDeltaCalculator.IsDeltaFamily(measure.SourceTable)— the ten-collector setDeltaFamilyIntervalColumnTestspins in both directions — not a second list that could drift. That covers the 25 Cumulative measures AND the two Delta-archetype measures on the same tables (wait_time_delta_ms,perfmon_value_delta):wait_time_delta_mscompiles to the very columnwait_time_msdoes, and filtering one name and not the other would have two names for one column disagree about one row. Query Store'sqs_executions(Delta on a table without the column) compiles unfiltered, as it must — naming an absent column fails at parse time. Gauges, PerEvent columns, ratios,COUNT(*)and the CAGG route are untouched.What this PR does NOT do
DarlingTrendReader.cs(the MCP raw query-stats const stays LAG-only; residual named above),TimescaleSupport.cs(no CAGG change — the A6 lane's),DarlingMcpTrendTools.cs(payload shape unchanged; itsget_query_store_duration_trenddescription's clause "the window's first point … carries null rates" is now true only when that point is a raw point — a one-line follow-up on that file), orCHANGELOG.md.COUNT(*), gauges, ratios, or the CAGG route; does not alter Delta-archetype semantics onquery_store_stats.Tests
Executed here (mactest pattern: the built
Darling.Tests.dllrun in-process with the WindowsDesktop framework entry removed; anet10.0-windowsthrowaway for the Lite DuckDB class; a throwawaytimescale/timescaledb:2.28.1-pg18on Docker asDARLING_TEST_PG):QueryStoreTrendRoutingTests(12/12) — newRollupTrendSql_RatesRollupPointsOverTheBucketWidth_AndRawPointsOverTheirSpacing: the class-gated CASE, the literal bound toHourlyBucketSecondsSql, the bare every-point LAG pinned by absence.QueryStoreTrendRoutingLiveTests(2/2, live TimescaleDB) — the existing test with its first-bucket pin MOVED (21 / 3,600, was unrated); newDurationTrend_AQuietHourDoesNotHalveTheNextBucketsRate: planted 10:00 / quiet 11:00 / 12:00 / raw 13:00 — rollup route 25 / 3,600, raw-only route 25 / 7,200 (the residual), MCP payloadunrated_points = 0.DeltaFamilyIntervalCompletionLivePostgresTests(3/3, live PG) — new query-stats twin: viewer duration + execution-count reads and the builder text run raw, rows in all three states (NULL/NULL/0/120 + a readmitted-plan 0): 2.0 (LAG), unrated (restart), 10.0 (stored 120, not the LAG's 4.0).ViewerQueriesRestLivePostgresTests(4/4) — one pin MOVED: both seeded rows carried a stored 60 s, so both collections are rated (1.0 then 2.0 ms/sec); the single-point expectation was the LAG idiom applied to a row whose interval the store had.DarlingMcpTrendToolsSurfaceAndSqlTests(43/43) — the "reported, not rewritten" pin retired intoRawDurationTrendSql_ReadsTheStoredInterval_ThreeState_AndTheProcedureConstsAreItsIdiom(builder ≡ viewer const; builder ≡ both procedure consts line-trimmed; the MCP const's must-move residual pin).McpZeroIsAMeasurementTests(20/20) — Lite census regex widened to the three-stateEND AS interval_secondsshape; Lite's three delta trends pinned three-state, Query Store pinned LAG-only.ViewerQueryTrendsSqlTests(11/11),DatabaseFilterTests(29/29),DurationTrendTierRoutingTests,DarlingPerformanceTrendsTierRoutingLiveTests,DarlingMcpTrendToolsLivePostgresTests,DarlingTrendEmptyTests— green.DarlingComposeTests(280/280) — new: per-archetype FILTER theory (8 cases incl. both Delta measures), non-delta absence theory (gauge/PerEvent/COUNT/qs_executions), ratio absence, overlay-in-either-position, rank-CTE, and a catalog-wide census gated on the real payload schema (27 filtered today; CAGG route asserted clean).DarlingComposeLivePostgresTests,ComposeQueryStoreLivePostgresTests,ComposeTopSeriesLivePostgresTests,ComposeAdHocModuleLivePostgresTests(5/5, live PG — the FILTER text executes),ComposeCaggValueMapperTests,ComposeParameterCoverageTests— green.DeltaFamilyUnknowableRowReadTests— newQueryDurationTrend_…andExecutionCountTrend_…(in-process DuckDB, same four-collection fixture as the procedure test): green; 10/11 in the class here, the one red is aPresentationFrameworkload on a pre-existing WPF-touching test (Mac artifact).NULL, 2.0/0.1, NULL, 10.0/0.2; the FILTER on the same rows:AVG380,000 → 633,333,MIN0 → 100,000,SUMunchanged.First executed in CI:
ViewerTrendRoutingPortTests(two WPF-describer tests cannot load here; unchanged by this PR), the rest of Lite.Tests. Builds: Storage, Service, Viewer, Lite, Darling.Tests, Lite.Tests —-c Release -p:EnableWindowsTargeting=true, 0 warnings each (Lite.Tests carries one pre-existing xUnit2000 on dev inLogTailOverlapThresholdPinTests.cs, not touched).Refs #3653 (partial — items A8 rollup denominators, A11's LAG-recompute clause, Compose Cumulative archetype). Review-dark window: auto-merge NOT armed; self-review in the lane report.
Which component(s) does this affect?
How was this tested?
See Tests above: executed here on PG 18.4 / TimescaleDB 2.28.1 (throwaway container) and in-process DuckDB; no SQL Server involved (store-side reads only).
Checklist
dotnet build -c Release -p:EnableWindowsTargeting=true)