Repository navigation
Description
Parent Issue
Detail of Subtask
Current implementation — 2026-10-31
PR #31785 retains the final native-operator preference at measured candidate dedb4595c2: a standalone native BETWEEN keeps its fused vector evaluator; compound admitted integer/DATE/Decimal64 predicates use cached exact filtering. The unsuccessful range-kernel experiment was reverted. Both measurement sides include merged #31620. Later changes merge catalog/DML fixes from main and repair only test admission/deadline handling; the measured source pins remain explicit.
Local warm SF10 now has a qualified full Q1–Q22 screen; broader acceptance remains open. Three complete pairs qualify, with five warm calls/query/arm. Q6 −36.46%, Q14 −21.99% and Q15 −29.21% retain lower latency. Q7 +0.82% is inconclusive (observed pair range −4.71% to +13.47%); no equivalence/speedup claim. The sole consistently slower screen signal, Q18 +1.65%, did not reproduce in an independent four-pair, 16-warm-call comparison: +0.03%, small-sample interval −1.03% to +1.85%. Campaigns remain separate.
The prior full-suite measurement gap was traced to runtime-loaded libraries outside the initial software pin set. Both arms now pin the complete observed closure, including its bytes in the existing application budget. All eight full-screen arms had zero physical I/O, spill and swap; one whole pair was excluded for background CPU. No resource threshold was relaxed. Earlier invalid runs and the historical Q7 +3.82% failure remain historical evidence. Gains elsewhere do not waive confirmed regressions.
Existing functional/static/BVT evidence is retained for unchanged scan behavior. Real-Q7 profiling verifies native BETWEEN/evalFilter fallback. The new coverage repair separates cluster admission from each SQL/recovery work deadline; fresh CI applies to the delivery head. All broader SF100/mixed-I/O/control acceptance checkboxes remain unchanged, and the issue stays open.
Full table, source/ELF pins, raw timings and resource receipts. Previous target-only evidence. Historical Q7 failure.
Implementation result — 2026-10-28
The lazy identity-selection candidate stopped at its exposure gate: seven current-main SF10 queries had zero identity-selection rows in scan batches larger than 256 rows. No kernel patch or PR. Partial-filter construction and compaction remain open.
Detailed measurements and decision.
Evidence reassessment — 2026-10-26
Historical reassessment status: DIAGNOSIS/VALIDATION OPEN. Existing selection/decode mechanisms and recent fixes must be included in the baseline.
Observed: Historical SF100 Q6 has LZ4 21.56% and TableScan.evalFilter 13.63% of user samples, plus predicate/boolean handling. Source shows materialization/selection/compaction steps and type-invariant non-JSON admission calls. Generic vector-copy leaves also occur in shuffle, joins, cache hits and background merges; they are not all scan-compaction cost.
Not yet established: The actual avoidable passes and bytes in each current scan/predicate caller, and whether direct selection or invariant dispatch saves more than it adds on simple inputs.
Next discriminating experiment: Split decode, predicate-result construction, selection construction, compaction and validation by caller. Count actual passes/bytes for equivalent work, including setup and NULL/mask/tail handling. Verify that a supposedly redundant check is type-invariant while preserving payload-dependent checks.
Measured target: Unchanged Q6/Q12/Q19 with fewer attributable passes/materialized bytes and lower CPU/latency.
Mandatory controls and total cost boundary: Nonselective, tiny/empty and NULL-heavy batches; constants; JSON and malformed offsets/payloads; filtered-row errors; varlen lifetimes and already-selected input.
Performance acceptance and rejection
- Freeze current-main/candidate sources, executables, real caller shapes and effective settings. Use the unchanged qualification SQL and complete result consumption; exclude cold runs and keep profiles separate from latency scoring.
- Demonstrate the named work/CPU reduction and an attributable uninstrumented target-query improvement. Include the controls below and full Q1-Q22 comparison; component wins, source changes, functional tests, SCA, merging and profile percentages are separate evidence.
- A confirmed affected/control slowdown fails; unresolved slower signals are inconclusive. Confirm with an independent longer balanced run. No gain elsewhere, favorable average or self-approved tolerance waives a regression.
- Complete applicable SF10/SF100 and memory/mixed-I/O acceptance before issue closure under the umbrella protocol. Report uncertainty, absolute CPU/instructions/work, allocations/copies and the same whole-application budget, effective cache, I/O/spill/swap/pressure evidence. Benchmark scripts do not verify input/table/schema/row counts/reference results/checksums.
Semantics and lifecycle requirements retained
- Focused tests preserve nullable/constant predicates, expression errors and evaluation semantics, selection order, varlen offsets/corruption checks and actual JSON validation.
- Profiles/counters demonstrate fewer predicate-result/selection/compaction passes or invariant helper calls for the same logical input.
- Report warmed unchanged Q6/Q12/Q19 CPU/instructions, allocation/copy evidence and latency; include nonselective, NULL-heavy and JSON/invalid-payload controls.
- Each proposed micro-optimization is measured separately before combining; coordinate borrowed-cache vectors with [Tech Request]: support read from cache without copy #16387 and the decoded-cache task.
Describe implementation you've considered
Use existing selection/search contracts or hoist a proven invariant only where a matched experiment supports it. Compare eager materialization with delayed selected-row copies. Keep validation and expression error/evaluation semantics intact.
Coordination: #30849 owns cache hits, #30845 shuffle/join copies, #30860 cross-expression fusion. Do not count the same removed copy twice.
Additional information
- Reassessed profile/caller evidence and delivery ledger.
- Historical MO source
873282742714436bff407dfcdbbe879147162bd3; DuckDB069cc9f9b5be802405797faecc284961b07c70ef. SF10 all-query profiles; SF100 results/profiles; mixed-I/O evidence. These are pinned historical captures, not current-main scores. - No new query/benchmark was run for this reassessment. Foreground query work, engine background maintenance, kernel CPU and off-CPU waits must be distinguished; all remain inside whole-application resource accounting.
Pinned implementation / plan references
Activity
Remove per-row boolean wrapper calls from inline scan filters (#31306)
aunjgr commentedon Oct 28, 2026
Current-main exposure result: stop the lazy identity-selection candidate
Measured main
6d1f5d7f2d31b119f201986f0bf6f9c7f2e78d89locally at SF10. The bounded diagnostic ran separately from the normal CPU profiles, reset its counters after the cold run, and recorded one warm execution of each query. It inspected selection shapes, without verifying inputs, rows or results.Some diagnostic executions included a single-row identity selection from incidental work. Those do not justify a TPC-H optimization. All diagnostic buckets stayed within the fixed 256-bucket cap, with zero overflow.
Decision: stop this candidate at its pre-implementation exposure gate. No lazy-selection production patch or PR was created. This does not close the broader issue: partial-filter selection construction and compaction still have material cost. Normal, uninstrumented profiles attribute 10.88%, 9.08% and 3.59% of sampled user CPU to
TableScan.evalFilteritself in Q6, Q12 and Q19 respectively. Those are whole-function costs, not an estimate of avoidable identity writes.The next design must target an actually exercised operation and preserve ordered predicate errors, NULL handling and eager/late row mappings. Decoding and owned-output copies belong to #30849; they must not also be counted as selection savings here.
Resource scope: CPUs 0–7, controller CPUs 8–15, explicit 16 GiB SHARED memory cache and 32 GiB whole-application budget, native SF10 image staged in RAM. All completed exposure/profile arms passed zero physical reads/writes, spill, swap, OOM and pressure gates. Profile latency was not used as performance acceptance. Local evidence:
build/exec-copy-scan-wave-20261028andbuild/execution-kernels-wave/copy-scan-wave-exposure-v4-sf10.aunjgr commentedon Oct 29, 2026
Proposed row-map-copy PR: stopped at exposure gate
The approved design required evidence that the first partial late-materialized filter copies its selection into
filterRowsin current TPC-H execution before implementing a buffer transfer.A separate diagnostic build from main
b01e952ad1021ef8f188641f3a11a1360c001218counted that exact branch after the cold run was excluded. Warm Q1, Q2, Q6, Q10, Q12 and Q19 recorded zero calls to it. The diagnostic also observed active CHAR preparation in Q1/Q10/Q12, confirming that the reset/export path was functioning. All accepted diagnostic arms passed the recorded all-memory resource gates; one interrupted Q12 setup is retained separately and was not used as evidence.The current late-materialization eligibility requires a qualifying deferred varlen payload; ordinary fixed-column partial filtering does not establish that eligibility. The target copy is therefore not an exposed optimization for these measured qualification queries. No production buffer-transfer patch or PR was created. This follows the approved stop condition; it does not close #30850 or establish that partial-filter selection and compaction have no remaining cost.
The wider issue still needs an actually exercised operation with ordered predicate errors, NULL semantics and row mappings preserved. This experiment changes neither eligibility nor SQL to manufacture exposure.
Evidence is retained locally under
build/cache-scan-group-wave-20261029/admission-scan-char-exposure-sf10andlate-rowmap-exposure-sf10. Measurements used eight physical application CPUs, an effective 16 GiB cache and a 32 GiB whole-application budget. Diagnostics recorded bounded operator-work counters, not input or result verification; their elapsed time is not a performance score.aunjgr commentedon Oct 29, 2026
Exact cached scan filtering: implementation and preliminary exposure evidence
Ready PR #31785: #31785
Candidate implementation is isolated from CHAR grouping and targets complete deterministic fixed-width predicates on ordinary committed blocks. It uses one existing cache read/lease, applies current visibility first, evaluates exact predicates privately, and materializes owned survivors once. Unsupported expressions and representations retain generic evaluation. No cache-limit, stored-format or planning change is introduced.
Final-source correctness and delivery
Candidate
a4c1bc97392acb2de92450320d62258327bd69d6merges current main1c80f16a2bc2fd59d5ca5cadd8b5fb418f8b8244. Owning ObjectIO/ioutil, table-scan, block-read, readutil and IVFFLAT tests passed; focused race passed; focused tests cover physical selection order and duplicates. Full SCA passed with zero findings. The final normal SIMD/v3 binary passed the minimal DATE/Decimal64 SQL BVT twice on one instance, including database teardown, and MO stopped with SIGINT.Preliminary prototype timing — one complete pair, not final-source acceptance
An earlier frozen prototype completed one resource-qualified Q1–Q22 pair against main containing merged cache fix #31767. Three warm calls/query; cold call excluded. Eight physical application CPUs, effective 16 GiB CN cache, 32 GiB whole-application budget. The benchmark executes/drains and does not verify input/schema/table/row/reference/results/checksums. Profiles are separate from latency scoring.
This sample predates the final typed-view and storage-selection-order corrections. It is exploratory evidence, not a final-binary speedup or a regression-free result. A single pair has insufficient independent replication for an uncertainty interval.
Q6 is lower by about 25% in this preliminary pair. Whole-run CPU is essentially unchanged (129.47 s main versus 129.55 s prototype), so this sample does not establish an overall CPU improvement. Higher control estimates (including Q4/Q11/Q19) remain unresolved; gains elsewhere do not waive any confirmed regression. No acceptance checkbox or issue closure follows from this sample.
Prototype executable and patch identities (the prototype had local changes; the patch hash identifies that exact source snapshot):
ee8b20692e560a54ef18fddbb439b875dc0b52c2; executable SHA25684ca145251b48a9db4d3c70296197b9a299ff35d11519d51aee486928df2b70a; patch SHA25601ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b.79feea4051c922f69de6409c3b1ed8212b27fbca; executable SHA2560019210b2de62d2bbba8f0950450df57928995204af08abdba71d1e31879db09; patch SHA256e61d81015e14c3cf7aab7487eb1192714f103e46663f0400281bc75a54452785.Why the change targets scan work
A temporary bounded post-cache structural probe on current-main Q6 records 1,679,609,456 eagerly materialized fixed-value bytes and 99,071,889 Boolean selection positions per warm call. Normal-source exploratory profiles show evalFilter, DATE getters, memmove and fixed-vector shrink; the candidate prototype profile moves the hot work into exact typed comparison kernels. These captures had recorded host activity and are attribution evidence only; sample percentages or CPU-per-call estimates are not acceptance. Q12/Q19 string/OR expressions remain generic in this stage.
Remaining performance acceptance
The final candidate and clean current-main binaries are built and pinned. The owning table-scan package and two-run SQL BVT also passed after merging the temporal-warning changes on main. The initial final-binary attempt could not obtain a compiler-free window within two minutes. A fresh retry against the published source ran two candidate arms; both were excluded as whole attempts for external CPU and Cargo/Rust overlap, exhausting the one-retry rule. Both had zero physical reads/writes, zero spill and zero application swap, but there is no accepted final-source pair. Unrelated jobs were left running, task-owned MO processes stopped, and CPU masks were restored. Final balanced Q1–Q22 timings and independent slower-control confirmations remain required before merge. Earlier nonzero-I/O attempts are excluded, not pooled.
Run the final-source balanced Q1–Q22 comparison and independent slower-control confirmations in a compiler-free local window; keep cold runs excluded and retain the strict I/O/spill/swap/pressure/CPU gates. The broader SF100 and memory/mixed-I/O acceptance stays open under the parent issue. A confirmed slowdown blocks merge/acceptance; inconclusive signals are reported as such.
aunjgr commentedon Oct 29, 2026
Published exact scan filter: local warm SF10 — Q7 blocks acceptance
Baseline
1c80f16a2bc2fd59d5ca5cadd8b5fb418f8b8244; candidatea4c1bc97392acb2de92450320d62258327bd69d6(PR #31785). Each candidate is isolated from the CHAR PR.The full-query screen completed seven process pairs: four initial pairs plus three resource-driven follow-ups. Only pairs passing every original gate on both arms are included in the qualified table. Each query has three measured warm calls/arm after discarding its cold call. Normal Go1.27.1 SIMD/v3 builds; eight physical application CPUs8–15; effective16GiB CN cache;32GiB whole-application budget. The benchmark executes/drains only and performs no input/schema/table/row/reference/result/checksum verification. No new engine build or test campaign was run for this measurement.
Following the request to bench now while unrelated jobs remained active, the measurement controller completed both sides and preserved CPU/build observations. It does not abort solely for build presence. All original qualification thresholds remain in force; whole pairs with a failed arm are excluded from qualified analysis. Clippy compiler processes are also recorded. No unrelated jobs were stopped.
Completed arms: 14; qualified complete pairs: [3, 4]. Table scope: Qualified pairs only.
The paired change is the median of per-process-pair ratios, with one median of three warm calls per query/arm. It can differ from the ratio of the two displayed medians. The full-query qualified sample currently contains only two independent pairs; its bootstrap intervals are therefore sparse and need cautious interpretation. Contaminated pairs are not included in this table. A descriptive comparison under host interference cannot establish a causal speedup or regression and does not clear merge acceptance. Confirmed slower controls still block acceptance; gains elsewhere never offset them.
The conservative memory gate additionally includes pinned software bytes. Peak memory is a whole-arm measurement, not per-query allocation. Profiles and previous prototype timings are excluded from these latency scores.
Remaining: independently confirm any slower qualified signals, resolve CHAR Q11/NULL controls separately, and finish broader SF100/memory/mixed-I/O acceptance before closing the parent subtasks.
Independent slower-control confirmation
Q7/Q18/Q19 were selected from the qualified full-query screen before this independent run. Four balanced qualified process pairs completed, with twelve measured warm calls/query after excluding the cold call. Source/binaries, SQL, CPU placement, effective cache and whole-application budget were unchanged. Resource-invalid pairs are excluded in full, never selected by timing.
Local acceptance: FAILED / do not merge yet. Q7 is +3.64% in the qualified full-query screen and +3.82% in the independent longer comparison. The independent four-pair interval is +0.04% to +5.21%; the sample remains small, but the slower direction was reproduced. Q6's −40.29%, Q14's −23.57%, Q15's −27.78% and the roughly −3.98% sum of query medians do not waive Q7. No source-level cause is asserted yet; short Q7 CPU profiles were captured separately from latency scoring to guide the correction.
The full-query table is based on two qualified balanced pairs and therefore displays their observed ratio range, not a nominal 95% confidence interval. The independent table uses four qualified pairs and paired bootstrap intervals. The broader SF100 and memory/mixed-I/O acceptance remains open.
Separate Q7 profiling
Both normal-source profiles completed 64 warm Q7 calls after excluding the cold call and passed all resource/host checks. No profile timing is included in the latency tables.
PMU counters reported 100% running time. Exclusive user CPU-clock samples show main
opBetweenFixed[int32]at5.65%,evalFilterat5.22%,unionT[int64]at1.57%, andruntime.memmoveat10.04%. CandidateselectExactOrdered[int32,int32]is18.00%,unionT[int64]11.46%, andmemmove1.98%. These are exclusive leaves; shared copy leaves can have multiple callers, so their entire percentages are not assigned to scan.Source inspection shows that main's constant-bound BETWEEN loop checks both bounds in one pass (
operator_between.go), while the candidate compiler lowers BETWEEN into GE and LE descriptors (table_scan/exact_scan_filter.go:51). The profile is consistent with extra selection/gather work offsetting the saved copies. Single-pass range execution and the selected-copy path are the next hypotheses for an isolated correction; the precise causal split is not yet established. Raw recordings, PMU counters and exact engine binaries are preserved locally for that analysis.aunjgr commentedon Oct 30, 2026
#31785 Q7 review response — final admission-only repair
Final measured candidate
dedb4595c215857aa5ddb64c3e250365ad1a94da; current-main baselined1594899b7381c5f0d44fa4590d21da1b09fa109. Both sides include merged #31620. The repair is independent of that PR.The exact-filter optimization removes repeated residual evaluation/materialization. A lone native BETWEEN already evaluates both bounds in one fused loop. Replacing that plan form with cached selection/gather added work and caused the documented Q7 slowdown. The final compiler now leaves a standalone native BETWEEN on its existing evaluator. BETWEEN inside a larger eligible conjunction still participates in cached exact filtering. Admission checks the executable operator shape; there is no query/table ID, data-dependent cutoff or configuration switch.
An experimental single-pass range kernel reduced instructions but still reproduced Q7+3.24% in a clean longer context. It was reverted. The separate selected-copy dependency probe was diagnostic only and is not part of this repair or its qualification. No favorable component result waived the Q7 regression.
Final current-main Q7 and affected controls
Four balanced independent process pairs planned, plus two main-first resource replacements for the rejected main-first pairs; qualified complete pairs: [1, 2, 100]. Twelve measured warm calls/query after excluding each cold call. Same Go1.27.1 SIMD/v3/alignment64, identical release metadata, source-validated native build, eight physical CPUs, effective16GiB CN cache and32GiB whole-application budget including pinned software. Default randomized hash seeds. Scripts execute/drain only; no input/schema/table/row/reference/result/checksum verification.
Percentile intervals from small process samples are limited. Inconclusive is not proof of equivalence or a query speedup. A confirmed slowdown is not waived by gains elsewhere.
An earlier independent longer run of the same admission repair, before the final common-main merge, retained four qualified24-warm-call pairs: Q7−2.22% (interval−8.15% to+0.06%), Q6−33.45%, Q14−25.37%. Source pins and raw data are separate below; the campaigns are not pooled.
Execution and path receipts
mo-cgo-test -count=1 -timeout=3m ./pkg/sql/colexec/table_scanpasses(0.093s). The existing fixture proves native BETWEEN fallback, retained compound admission in separate-expression and AND forms, real scan Prepare, nil/unsupported fallback, and existing accounting/reset/reuse.opBetweenFixedandTableScan.evalFilter; no exact-filter selection kernel appears among the reported leaves. This is path diagnosis, not a latency score.Full-suite qualification limit
Final-admission Q1–Q22 execution was attempted with four paired processes and five warm calls/query. There were no qualified complete pairs: paging/physical-read and CPU/reclaim gates rejected at least one arm of every pair. Therefore no current full-suite all-memory performance PASS is claimed. Those receipts are retained below. The scoped current-main Q7 review comparison above is qualified; broader issue30850 SF10 full-suite/SF100/mixed-I/O acceptance and issue closure remain open.
Measurement metadata is RAM-backed during capture and persisted afterward. Post-warm CPU readiness waits for an observable quiet condition. Timed-window CPU/compiler/I/O/spill/swap/OOM/pressure/pinning limits are unchanged. Failed immediate/admission-observer attempts were excluded; instrumentation writeback was not treated as engine performance.
75e39644734c4492cf066816b78e4a6584a6002becc4361d9fd88cda2ddb08bf470f1aa97adfa851121b3e29fb99b849392df2709b78b2924205817cdf9f37da28ae1af42d617fcd87ca3c15c524aa7967b1f0d55f3c3b22845735a0e7d6f086b22fc99a5f6d46c5d1594899b7381c5f0d44fa4590d21da1b09fa109702ffe3ffb7a39eec6e5c7fa4fc36544ba973edf81e236f6c0dad775d058923bdedb4595c215857aa5ddb64c3e250365ad1a94daa84614724dbd96ef2b116c89b70f9b162306724f37b2650a0a59546eeec2cb6ed1594899b7381c5f0d44fa4590d21da1b09fa109702ffe3ffb7a39eec6e5c7fa4fc36544ba973edf81e236f6c0dad775d058923bdedb4595c215857aa5ddb64c3e250365ad1a94daa84614724dbd96ef2b116c89b70f9b162306724f37b2650a0a59546eeec2cb6eAll target and full-screen resource receipts
Raw qualified target/control warm calls(seconds)
aunjgr commentedon Oct 30, 2026
#31785: qualified SF10 Q1–Q22 screen and independent Q18 confirmation
The full-suite evidence gap in the previous update is now closed for local warm SF10. Three complete Q1–Q22 process pairs qualify under the original resource limits. Q6/Q14/Q15 retain lower latency. Q7 remains inconclusive. The only consistent slower screen signal, Q18, did not reproduce in a separate longer balanced comparison. This is neither a Q7 speedup/equivalence claim nor SF100/mixed-I/O acceptance; issue closure remains open.
Measured baseline
d1594899b7381c5f0d44fa4590d21da1b09fa109and candidatededb4595c215857aa5ddb64c3e250365ad1a94daboth include merged #31620. This measures the final native standalone-BETWEEN preference, with the unsuccessful range-kernel experiment reverted. The later CI repair changes only test deadline/admission handling. Subsequent common-main changes concern declared catalog metadata and INSERT/UPDATE CTE target binding, not the admitted scan/reader/native BETWEEN/aggregation execution closures. These are source-pinned measurements, not newly rebuilt measurements of the later merge.Measurement correction and qualification
A separate syscall/mmap diagnostic found 29 runtime-loaded paths (about 20.2 MiB) outside the initial ldd-derived software closure, including libraries loaded dynamically. Both arms now pin the complete observed closure before measurement; software pinning and its bytes remain included in the 32 GiB whole-application budget. Every arm of the new full screen has zero physical read/write bytes. The diagnostic itself was traced, had an unsuccessful wrapper teardown, and contributes no latency result; its owned processes were subsequently stopped.
Unchanged local settings: Go1.27.1, SIMD/v3/alignment64, matched release metadata, eight physical CPUs, effective 16 GiB CN cache, RAM-backed database image and measurement metadata, 32 GiB application budget. Default randomized hash seeds. Cold calls are excluded. Scripts execute/drain only: no input/schema/table/row/reference/result/checksum verification. Profiles are separate from latency scoring.
Four alternating-order independent pairs were planned; complete qualified pairs are 0, 2 and 3, with five measured warm calls/query/arm. Pair 1 is excluded in full because its candidate arm exceeded the existing background-CPU gate. No CPU/compiler/I/O/spill/swap/OOM/pressure/pinning threshold was relaxed. All eight arms had zero physical I/O, swap and spilling.
Full SF10 screen
Paired change is the median of candidate/main ratios of matched process medians. The two pooled timing columns need not have that ratio. With only three complete pairs, the range below is the observed pair range, not a precise confidence interval. Screen signals guide confirmation; they are not proof of equivalence or attribution for every small difference.
Q18 independent confirmation
Four new balanced qualified process pairs, 16 warm calls/arm, same binaries and unchanged gates: main median 0.386786s; candidate 0.386573s. Paired change +0.03%, small-sample bootstrap interval -1.03% to +1.85%. Individual pair changes: +1.85%, +0.37%, -0.30%, -1.03%. The screen's +1.65% Q18 result did not reproduce as a directional signal. This removes that unconfirmed screen flag; gains elsewhere were not used to waive it.
Q7 is +0.82% in the full screen, with a wide −4.71% to +13.47% observed range. Earlier publication-head target-only measurements were also inconclusive. The campaigns are not pooled. Real-Q7 profiling and the admission fixture establish native BETWEEN/evalFilter fallback; latency evidence does not establish equivalence. External reassessment remains appropriate.
Exact source and executable identity
d1594899b7381c5f0d44fa4590d21da1b09fa109702ffe3ffb7a39eec6e5c7fa4fc36544ba973edf81e236f6c0dad775d058923bdedb4595c215857aa5ddb64c3e250365ad1a94daa84614724dbd96ef2b116c89b70f9b162306724f37b2650a0a59546eeec2cb6eAll full-screen and Q18 resource receipts
Raw qualified warm calls, separately by query/pair/arm (seconds)
docs: design early runtime filtering and dictionary vector execution (#…
XuPeng-SH commentedon Nov 18, 2026
转交 QA:cached exact scan filter 已合入
@Ariznawlll 请接手回归。本次转测不代表完整性能验收或关闭 issue。
0df8dded57f4a2ffa6fc16ce79ee8398881e9c25。在已有 column-cache lease 内评估完整、有序、可接纳的定宽复合谓词,再一次物化存活物理行;独立 native BETWEEN 保留原有 fused evaluator,unsupported/varlen/appendable/rowid/Top-K 等保留 generic 路径。不宣称后续所有 scan/materialization 优化均完成。d8443d85765fd6f45d06de581da87c369f506ab9review approve,无 actionable defects。该 reviewer 报告六个 affected package suites 正常及 race/vet 通过;SQL/topology 依赖所提供 CI/作者报告,并未本地跑 BVT。这些是已有证据,本次巡检没有执行测试。d1594899b7/ candidatededb4595c2,不是最终 merge 的新基准。SF10 Q1–Q22 三个 qualified process pairs 中 Q6/Q14/Q15 分别 -36.46%/-21.99%/-29.21%;Q7 +0.82%(观察范围 -4.71% 至 +13.47%)不确定。Q18 的 +1.65% screen signal 经独立四对、每臂 16 warm calls 变为 +0.03%(-1.03% 至 +1.85%),未复现。旧 candidate 的 Q7 +3.82% 不应作为最终实现的现存反例;也不声称统计等价。Ariznawlll commentedon Nov 19, 2026
QA 本轮验收:功能探针与 focused Go 测试通过,完整优化/性能验收未闭环
本轮针对已合入 main 的 #31785(merge
0df8dded57f4a2ffa6fc16ce79ee8398881e9c25)追加独立验证。结论不是发现了新的 SQL 结果错误,而是现有证据不足以完成本 issue 的优化命中与性能验收,保持 OPEN。验证版本与范围
035af996806917b23d9428695e0295b65cb16356,git_version()=035af99680,version()=8.0.30-MatrixOne-v1.3.0。3b95c0878f88b3da58bf3e65c369b7ef4d13104e。本轮实际通过项
pkg/objectio以下测试实跑 PASS:TestExactScanOwnsSelectedOutputAndReusesStateTestExactScanScalarBoundariesAndConstantsTestExactScanAllocationFailureClearsBorrowedViewsTestExactScanPrimitiveTruthTablesTestExactScanAllNoneAndMalformedSourceTestCompileExactScanFilterAdmissionPASS。TestBlockDataReadWithFilterDefersPayload及其 tombstone、zero-survivor、metadata、fallback 等子测试全部 PASS。这些结果支持 cached exact scan filter 的组件语义、所有权和部分异常路径,但不能单独证明普通客户端 SQL 在最终合并版本中命中了目标 fast path。
尚未通过验收的项目
EXPLAIN ANALYZE没有公开ExactScanStats.Applied等可直接判定 exact fast-path 命中的统计;本轮也未取得等价的公开 profile/counter 证据。EXPLAIN FOR CONNECTION返回not supported: EXPLAIN FOR CONNECTION。这是本次诊断手段的限制,不单独记作新的产品结果反例。QA 结论
功能探针和 focused Go 测试通过;真实 SQL 公共路径的直接优化命中证据与完整性能验收仍未闭环。 后续至少需要一项能对应到真实 SQL 的 exact-path 命中计数或可信 profile,以及符合原 issue 资源和对照要求的独立性能结果,才能据此完成整项验收。