Revert "SQL style null-on-empty semantics for Sum and Mean" - #9324
Conversation
This reverts commit 329bba2.
|
We will revert this and figure out a forward compat way to fix this. |
Merging this PR will degrade performance by 1.51%
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
Codecov Report❌ Patch coverage is ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Zone maps exist to prune, and a zone sum prunes nothing: `ZoneMap::prune` lowers predicates, and no predicate is answered by a per-zone total. The aggregate was recorded because it always had been, and it then had to be declared in `core2026.08.0` for writes to keep succeeding once the aggregate filter was armed - a hostage situation, not a justification. Its semantics are also unsettled: null-on-empty was changed in #9113 and reverted in #9324 within the same week. That is not a stat to freeze into an edition whose members are permanent. Drop `Sum` from the default zoned aggregates and `vortex.sum` from `core2026.08.0`, so the writer and the declaration stay consistent. File-level statistics still record `Stat::Sum` via `PRUNING_STATS`; that mechanism is separate and unaffected, as is the legacy-read path in `zoned/schema.rs` that still understands a sum in older files. Signed-off-by: "Joe Isaacs" <joe.isaacs@live.co.uk>
Zone maps exist to prune, and a zone sum prunes nothing: `ZoneMap::prune` lowers predicates, and no predicate is answered by a per-zone total. The aggregate was recorded because it always had been, and it then had to be declared in `core2026.08.0` for writes to keep succeeding once the aggregate filter was armed - a hostage situation, not a justification. Its semantics are also unsettled: null-on-empty was changed in #9113 and reverted in #9324 within the same week. That is not a stat to freeze into an edition whose members are permanent. Drop `Sum` from the default zoned aggregates and `vortex.sum` from `core2026.08.0`, so the writer and the declaration stay consistent. File-level statistics still record `Stat::Sum` via `PRUNING_STATS`; that mechanism is separate and unaffected, as is the legacy-read path in `zoned/schema.rs` that still understands a sum in older files. Signed-off-by: "Joe Isaacs" <joe.isaacs@live.co.uk>
Zone maps exist to prune, and a zone sum prunes nothing: `ZoneMap::prune` lowers predicates, and no predicate is answered by a per-zone total. The aggregate was recorded because it always had been, and it then had to be declared in `core2026.08.0` for writes to keep succeeding once the aggregate filter was armed - a hostage situation, not a justification. Its semantics are also unsettled: null-on-empty was changed in #9113 and reverted in #9324 within the same week. That is not a stat to freeze into an edition whose members are permanent. Drop `Sum` from the default zoned aggregates and `vortex.sum` from `core2026.08.0`, so the writer and the declaration stay consistent. File-level statistics still record `Stat::Sum` via `PRUNING_STATS`; that mechanism is separate and unaffected, as is the legacy-read path in `zoned/schema.rs` that still understands a sum in older files. Signed-off-by: "Joe Isaacs" <joe.isaacs@live.co.uk>
Zone maps exist to prune, and a zone sum prunes nothing: `ZoneMap::prune` lowers predicates, and no predicate is answered by a per-zone total. The aggregate was recorded because it always had been, and it then had to be declared in `core2026.08.0` for writes to keep succeeding once the aggregate filter was armed - a hostage situation, not a justification. Its semantics are also unsettled: null-on-empty was changed in #9113 and reverted in #9324 within the same week. That is not a stat to freeze into an edition whose members are permanent. Drop `Sum` from the default zoned aggregates and `vortex.sum` from `core2026.08.0`, so the writer and the declaration stay consistent. File-level statistics still record `Stat::Sum` via `PRUNING_STATS`; that mechanism is separate and unaffected, as is the legacy-read path in `zoned/schema.rs` that still understands a sum in older files. Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Reverts #9113