Repository navigation
[4.2-dev] fix: preserve BOOL ZoneMap correctness - #32724
Conversation
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: fe80d3092b09c6b3d79c5a6158098e2bf13396fe
Assessment: approve
The BOOL summary fix preserves pruning correctness for legacy persisted data while keeping writer bytes exact. It reuses the vector/index and objectio owners; the BOOL MAX scan fallback and physical-column extrema helper are necessary because conservative bounds cannot supply exact values. Source tracing, independent SQL-oracle checks and supplied current-head CI support approval, with no unresolved actionable findings.
Model: gpt-6.1-sol / max
Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0
Validation:
-
Reviewed the complete 16-file delta, all three discussion_index entries and linked issue 32720. discussion-assessment.json accounts for every discussion key.
-
Traced vector summaries through persistent column, sort-key and ZoneMap-area readers and raw serialization; checked aggregate fallback callers, sequential object iteration, context/error propagation and loaded-column release ownership. Maintained tests cover legacy/new bounds, nulls, immutable metadata, pruning, exact extrema and public SQL consumers.
-
Local source/fixture/evidence audit passed through check-run: source-audit.log and source-audit.json, receipt checks/1794594810966249423-2.json, exit 0 at the frozen clean head. Independently derived 25 SQL result sets and checked a 358-case nullable BOOL model; this was not Go or database execution.
-
Reused evidence.json's head-bound successful CI records for shared build, Ubuntu/x86 UT and coverage, Linux/arm64 SCA and multi-CN pessimistic BVT. The later CI Required completed successfully at 2026-11-13T18:00:48Z; earlier cancellation/failure records and skipped upgrade checks were not counted as passes.
-
Reviewed the author's reported baseline/fixed six-row SQL comparison, normal BVT comparisons and targeted persistence/race checks as supporting evidence for the pruning correction. The initial report's 24-statement coverage claim was not extended to the later compile/disttae changes.
-
Final schema, receipt/log, source fingerprint and discussion-coverage reconciliation is retained in review-audit.log.
Limitations:
-
No local Go tests or database service were run. The supplied CI snapshot contains aggregate outcomes rather than per-test raw logs; later exact-value consumer changes rely on current-head CI, maintained regression cases and source reasoning.
-
Legacy and current all-false persisted summaries are indistinguishable without writer provenance, so their conservative views can scan extra blocks. Exact BOOL column summaries now read physical values; this necessary correctness cost was not benchmarked here.
-
The original 100M-row, three-CN workload and customer performance were not reproduced; approval does not claim that stress run or identify a unique historical introducing commit.
❌ Left the queue ·
|
✅ Merged into
|
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #32720
What this PR does / why we need it:
Port only the BOOL correctness closure from main #29527 (
f6eb974d5a), without its unrelated Cartesian DML or statistics changes.Validation on
4.2-dev@1d90e5197c, macOS/arm64, Go 1.26.4, CPU mode:optimizer/non_primary_zonemap.sqlpass 92/92 each, with independent database-teardown checks between runs.Compatibility tradeoff: historical mixed and genuinely all-false BOOL bounds are indistinguishable without writer provenance. Conservative reads may scan additional all-false blocks rather than lose true rows. Only the ambiguous BOOL view is copied; other metadata paths remain unchanged.
Limits: the original 100M/three-CN workload, Linux CI and customer-scale performance have not been rerun. The minimal reproduction proves the current-branch failure mechanism, not that #32419 is the original incident's uniquely bisected introducing commit.