Repository navigation
Fix Cartesian DML memory planning and transient statistics reuse - #29527
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
更新:CI 根因修复已提交到
最终生产构建和增量 lint(0 issues)通过,CPU owning packages、cache race、vet 通过。13 个受影响 BVT 脚本在正常本地拓扑连续两轮各 2,508/2,508,通过后 catalog 清理及服务退出正常。这不代表完整 PROXY/PESSIMISTIC CI 拓扑通过。GPT-6.1-sol / xhigh 完整源码及 CPU 证据评审无未解决代码 blocker。 GPU 整套验证 NOT VERIFIED:当前无 CUDA/GPU;用户明确要求立即推送,覆盖本次技能前置门禁,不把该项记作 PASS。按要求不等待新 CI,Iceberg 不在范围。 |
41d5bf2 to
68d0c44
Compare
Latest-head deep reviewReviewed head Conclusion: the current code is approvable. No newly verified blocking correctness or design defect was found. This does not mean all performance concerns are closed. This was a direct read-only review without subagents. Design and previous-comment closure
Nonblocking follow-ups and qualifications
Complete branch growth was examined separately:
Validation
This publication only updates PR metadata and records the completed review. It adds no commit and requests no CI or test rerun. |
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #29497
Fixes #29533
Fixes #29534
Fixes #29529
Fixes #29530
What this PR does / why we need it:
Unconditioned INNER JOIN must multiply the already-filtered child cardinalities. The previous join-key selectivity formula underestimated Cartesian INSERT sources and could admit resident RIGHT DEDUP maps beyond the query memory budget. Correct multiplication also exposed severe small-write regressions when both sources used the default 1,000-row estimate.
Implementation and ownership
No additional statistics cache, per-table counter, expression-generation state or alternate execution path is introduced. Remove obsolete compiler traversal and dead Cartesian/minimal-statistics branches.
Validation
Current reviewed head:
c4d42883408cf4a62fc46046a7616857bdad81cc.Current base/merge-base:
52eecb55bee9b55e776d09c64dfbaa55d5db8f1f(main).Exact-head results
-race -v -count=1: worker/expression-generation changes, local rebind/errors, private shared-state traversal, and hidden-expression private copies. All four passed (1.207s). Complete-diff whitespace check passed.Retained integration evidence
The linked validation record identifies source/binary provenance for earlier package/race/incremental-SCA checks and real SQL/JDBC tests. These cover own-write growth and unrelated-write isolation, ordinary/prepared reuse, duplicate-key atomicity, rollback/follow-up, durable AUTO_INCREMENT offsets and restart, wide-row planner consumption, and snapshot visibility.
Earlier real 1.2M-row tests at a 64MiB query cap pass with/without PK and default/accurate statistics, with automatic spill and full content/error oracles. Thirteen affected BVT scripts pass twice locally (2,508 statements per round); publication completes before fixture statistics are patched, and range, REUSE and nonzero-spill assertions remain. These historical results retain their recorded revision/topology scope.
Performance and remaining limits
The placement-consolidation binary was compared with main and its pre-optimization head in three matched, counterbalanced rounds: one CN/local NVMe, 64MiB query cap,
max_dop=2, 5-by-8 source rows, 63 scenario-phases and 8,280 timed statements. Pooled medians:Complete branch increment
Relative to the current merge-base:
Implementation, tests and documentation were reviewed separately. Tests retain distinct real-consumer, boundary and unhappy-path oracles; documentation still offers room to reduce historical narrative.
Current v11 contract · Validation, provenance and measured limits