You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Subtask]: Enable dictionary scan, filter and projection outputs #32386
Enable selected outputs after consumer/ownership prerequisites merge. Direct-column projections share accounted immutable backing and selections; computed columns may remain flat. Preserve row order, duplicates, NULL/grouping and provenance, source reuse and budget refusal fallbacks.
Status: approved staged work; no delivered implementation or performance claim yet. See versioned design #32380. Dependencies follow the seven-PR series; no dependent producer enablement before prerequisites merge.
Describe implementation you've considered
Use immutable snapshots and shared selections, existing allocation/lease machinery and explicit read/materialization contracts. Every live backing has one effective release owner and a physical bound. Unsupported ownership or consumers retain ordinary accounted materialization.
Additional information
Acceptance: Confirmed Q12 speedup at SF10 and SF100 memory profiles; all-query memory/disk regression gates.
SF10/SF100 memory and disk; five independent matched process pairs, cold full suites excluded; unchanged Q1–Q22 plus Total. Preserve raw intervals, Holm query checks and separate Total gates.
Focused semantic/ownership/cancellation/reset/pressure controls and affected package/race/static evidence. No SF100 spills or benchmark-time input/result verification.
Keep raw datasets and final evidence; remove task-owned loaded images/clones/RAM disks at terminal completion.
The requester approved combining #32385 and #32386 into one implementation PR. #32405 has merged; the local implementation was rebased onto main 00da05219f, excluding inherited prerequisite commits. #32387 (shuffle/join output views) and #32388 (deeper early filtering/late payload work) remain separate.
The requester replaced the repeated-process acceptance protocol for this and future PRs:
One process per build, scale and memory/cache configuration; load/open once.
Run Q1–Q22 as six complete consecutive suites.
Exclude the first cold suite; report/profile/account the following five warm suites.
No reload/restart between those suites and no additional five-process-pair layer.
Keep all-query and Total reporting, matched budgets, no SF100 spill, and no benchmark-time input/result verification.
Warm repetitions describe within-process variation, not independent process samples.
Q12 remains the predeclared primary speedup target. Q1 is also in the scan-copy/aggregate-read validation scope: its filter is at scan, and dictionary-aware consumers must preserve that copy reduction rather than forcing immediate materialization. This does not replace #30841's small-domain grouping/hash work or #30847's aggregate update-cost work.
Local consumer, selected reader/tombstone, grouping, join, forwarding and account-lifecycle checks are passing. Performance acceptance and the implementation PR are still pending; no speedup or completion is claimed. Results will be appended in separate comments.
The current protocol is one process per build/configuration, one cold full22 suite excluded and five warm full22 suites profiled/accounted. Qualification is local SF10 memory/disk and local SF100 disk-backed, without spilling/swap/OOM or benchmark-time dataset/result verification. This replaces the older independent-process-pair/server129 wording; it does not weaken the regression gate.
The ownership and private-header corrections are published in draft #32492, head 73930d6ace, on updated main 1a12e18e68. Functional, race/account, SQL and static checks pass, but the current local SF10 memory qualification still fails the performance gate. Full all22/Total results and read-only diagnosis. Code is frozen pending requester review; disk/SF100 acceptance has not run. Earlier PR benchmark tables have been collapsed to avoid presenting them as current evidence.
The approved sorted-routing and typed-gather corrections are published in draft #32492, head 2f2617d6b3. Functional/race/SQL/SCA checks pass, but the local all22 memory gate still fails. Current full results and diagnosis. Earlier tables are collapsed; code is frozen for requester review and disk/SF100 acceptance remains pending.
Updated #32492 qualification and proposed correction: the approved retained-cache revision d5a1f21f1c passes correctness/race/SQL/static checks, but SF10 memory Total is 3.4048 -> 3.6820s (+8.1%). Snapshot-header/lease allocation churn and selected predicate/key work remain. No spill/swap/OOM or warm physical reads. Disk/SF100 qualification stopped; issue remains open and PR remains draft. Product changes are paused for requester review of the concrete correction.
Latest #32492 qualification and diagnosis, candidate 31c018976f: the approved fixes remove the large snapshot-header allocation excess and improve Q12 8.6% (SF10 memory) / 7.6% (disk). Total remains +0.6% / +0.3%; Q21 remains +8.0% / +4.0% and disk's screen stops before SF100. Correctness/race/SQL/static checks passed. A newly identified unconditional workspace-reclaim call reaches flat scalar join setup; the comment proposes guarding it, without claiming that accounts for the whole regression. Product edits are frozen for requester review. Keep issue open and PR draft.
Updated #32492 results/diagnosis: approved scalar reclaim guard af9d97b151 is pushed and matched with newest main 4c701ab3da; owning checks, SQL and SCA passed. Reclaim overhead drops out of ordinary scalar setup, but Total remains +1.7% memory/+2.4% disk. Disk flags Q7/Q20/Q21 and stops before SF100. Source-line samples identify the temporary Boolean-match construction plus separate original-row composition pass as the next proposed correction; Q20 is explicitly not attributed solely to that loop. Product edits stopped for requester review; issue remains open and PR draft.
#32492 current results and boundary diagnosis: approved direct compaction is pushed as 9d4934cb42 on newest main 553e16f52b; owning checks, SQL and full SCA pass. SF10-memory Total is +3.7%, Q21 +7.5%; screen stops before disk/SF100. A real Q21 stack builds selected views ahead of an ordinary shuffle and then copies them flat for its downstream consumer. Earlier flat-only admission assessment was incomplete; the comment proposes downstream admission propagation with mechanical capability separated to avoid configuration cycles. No implementation of that next correction yet. Issue stays open; PR stays draft.
#32492 merged into main at 2026-11-15 19:34 UTC as 49d552e16cfb7fb9160210d19f2874dc4a71272c; reported final PR head is c0af04287132343b2c4509fd549cba03ce1168cc. The combined implementation covers #32385/#32386: selected consumer reads, bounded execution-owned normalization, scan/filter publication and safe shuffle ingress/fallback. The earlier issue comments describe older candidates; their unfinished boundary correction is implemented in the merged change, not a reason to keep the old draft status.
Evidence checked remotely, not tests run in this handoff:
Author reports owning-package normal/race, ownership/admission/SQL controls and repository static/pre-push checks. The merge-queue record confirms CI Required satisfied for the merge.
Review 5912164730 approves 0a9739b99fa83fd6b48ab03adbefde90fd16574b, with fresh bufferlease race execution and reused CI. That review SHA is not relabeled as the final head or merge SHA.
Final performance report measures main d1893e5ae7 against candidate 866816d85f, not the final merge. SF10 memory/disk totals improve 1.54%/2.55%; SF100 disk total is 3.46% slower in that run. Different I/O/huge-page context supports but does not prove environmental attribution. Q6's 70,893 extra counted metadata bytes and the original Q7 SF100 +6.24% allocation observation remain disclosed; focused matched-input controls do not reconstruct or erase the latter. Review records these as disclosed tradeoffs/uncertainty, not universal zero regression.
Please verify the merged build's selected/flat fallback semantics, NULL/grouping/order/repeated-row behavior, cancellation/reset, held-borrower/COW and memory-pressure accounting; independently check Q1/Q12 activation and Q6/Q7/SF100 performance with matched budgets and source pins. This is transfer for QA, not acceptance, production qualification, or a claim that benchmark results were reproduced here. The one-process/five-warm-suite observations are not independent-process confidence bounds.
#32387/#32388, parent #32379, and other performance tasks remain separate; no automatic closure of those scopes or backport requirement is implied.
Activity
aunjgr commentedon Nov 10, 2026
Implementation/protocol update — 2026-11-10
The requester approved combining #32385 and #32386 into one implementation PR. #32405 has merged; the local implementation was rebased onto main
00da05219f, excluding inherited prerequisite commits. #32387 (shuffle/join output views) and #32388 (deeper early filtering/late payload work) remain separate.The requester replaced the repeated-process acceptance protocol for this and future PRs:
Q12 remains the predeclared primary speedup target. Q1 is also in the scan-copy/aggregate-read validation scope: its filter is at scan, and dictionary-aware consumers must preserve that copy reduction rather than forcing immediate materialization. This does not replace #30841's small-domain grouping/hash work or #30847's aggregate update-cost work.
Local consumer, selected reader/tombstone, grouping, join, forwarding and account-lifecycle checks are passing. Performance acceptance and the implementation PR are still pending; no speedup or completion is claimed. Results will be appended in separate comments.
aunjgr commentedon Nov 10, 2026
Implementation is published as templated draft #32492, covering #32385/#32386.
The revised local SF10 memory qualification failed. Full Q1–Q22/Total results, allocation/profile diagnosis and proposed corrections are recorded separately from the PR description. Product code is frozen pending the requester's review; revised disk/SF100 checks have not run.
The current protocol is one process per build/configuration, one cold full22 suite excluded and five warm full22 suites profiled/accounted. Qualification is local SF10 memory/disk and local SF100 disk-backed, without spilling/swap/OOM or benchmark-time dataset/result verification. This replaces the older independent-process-pair/server129 wording; it does not weaken the regression gate.
aunjgr commentedon Nov 10, 2026
The ownership and private-header corrections are published in draft #32492, head
73930d6ace, on updated main1a12e18e68. Functional, race/account, SQL and static checks pass, but the current local SF10 memory qualification still fails the performance gate. Full all22/Total results and read-only diagnosis. Code is frozen pending requester review; disk/SF100 acceptance has not run. Earlier PR benchmark tables have been collapsed to avoid presenting them as current evidence.aunjgr commentedon Nov 10, 2026
The approved sorted-routing and typed-gather corrections are published in draft #32492, head
2f2617d6b3. Functional/race/SQL/SCA checks pass, but the local all22 memory gate still fails. Current full results and diagnosis. Earlier tables are collapsed; code is frozen for requester review and disk/SF100 acceptance remains pending.aunjgr commentedon Nov 10, 2026
Updated #32492 qualification and proposed correction: the approved retained-cache revision
d5a1f21f1cpasses correctness/race/SQL/static checks, but SF10 memory Total is 3.4048 -> 3.6820s (+8.1%). Snapshot-header/lease allocation churn and selected predicate/key work remain. No spill/swap/OOM or warm physical reads. Disk/SF100 qualification stopped; issue remains open and PR remains draft. Product changes are paused for requester review of the concrete correction.aunjgr commentedon Nov 10, 2026
Latest #32492 qualification and diagnosis, candidate
31c018976f: the approved fixes remove the large snapshot-header allocation excess and improve Q12 8.6% (SF10 memory) / 7.6% (disk). Total remains +0.6% / +0.3%; Q21 remains +8.0% / +4.0% and disk's screen stops before SF100. Correctness/race/SQL/static checks passed. A newly identified unconditional workspace-reclaim call reaches flat scalar join setup; the comment proposes guarding it, without claiming that accounts for the whole regression. Product edits are frozen for requester review. Keep issue open and PR draft.aunjgr commentedon Nov 10, 2026
Updated #32492 results/diagnosis: approved scalar reclaim guard
af9d97b151is pushed and matched with newest main4c701ab3da; owning checks, SQL and SCA passed. Reclaim overhead drops out of ordinary scalar setup, but Total remains +1.7% memory/+2.4% disk. Disk flags Q7/Q20/Q21 and stops before SF100. Source-line samples identify the temporary Boolean-match construction plus separate original-row composition pass as the next proposed correction; Q20 is explicitly not attributed solely to that loop. Product edits stopped for requester review; issue remains open and PR draft.aunjgr commentedon Nov 11, 2026
#32492 current results and boundary diagnosis: approved direct compaction is pushed as
9d4934cb42on newest main553e16f52b; owning checks, SQL and full SCA pass. SF10-memory Total is +3.7%, Q21 +7.5%; screen stops before disk/SF100. A real Q21 stack builds selected views ahead of an ordinary shuffle and then copies them flat for its downstream consumer. Earlier flat-only admission assessment was incomplete; the comment proposes downstream admission propagation with mechanical capability separated to avoid configuration cycles. No implementation of that next correction yet. Issue stays open; PR stays draft.perf(exec): consume selected scan batches through expressions and ope…
XuPeng-SH commentedon Nov 15, 2026
QA handoff: merged consumer/scan implementation (not acceptance)
#32492 merged into main at 2026-11-15 19:34 UTC as
49d552e16cfb7fb9160210d19f2874dc4a71272c; reported final PR head isc0af04287132343b2c4509fd549cba03ce1168cc. The combined implementation covers #32385/#32386: selected consumer reads, bounded execution-owned normalization, scan/filter publication and safe shuffle ingress/fallback. The earlier issue comments describe older candidates; their unfinished boundary correction is implemented in the merged change, not a reason to keep the old draft status.Evidence checked remotely, not tests run in this handoff:
0a9739b99fa83fd6b48ab03adbefde90fd16574b, with fresh bufferlease race execution and reused CI. That review SHA is not relabeled as the final head or merge SHA.d1893e5ae7against candidate866816d85f, not the final merge. SF10 memory/disk totals improve 1.54%/2.55%; SF100 disk total is 3.46% slower in that run. Different I/O/huge-page context supports but does not prove environmental attribution. Q6's 70,893 extra counted metadata bytes and the original Q7 SF100 +6.24% allocation observation remain disclosed; focused matched-input controls do not reconstruct or erase the latter. Review records these as disclosed tradeoffs/uncertainty, not universal zero regression.Please verify the merged build's selected/flat fallback semantics, NULL/grouping/order/repeated-row behavior, cancellation/reset, held-borrower/COW and memory-pressure accounting; independently check Q1/Q12 activation and Q6/Q7/SF100 performance with matched budgets and source pins. This is transfer for QA, not acceptance, production qualification, or a claim that benchmark results were reproduced here. The one-process/five-warm-suite observations are not independent-process confidence bounds.
#32387/#32388, parent #32379, and other performance tasks remain separate; no automatic closure of those scopes or backport requirement is implied.
Ariznawlll commentedon Nov 16, 2026
测试版本
7fcd9bdff8433d72983f0399fd5c10dcab91a00a;实现 PR perf(exec): consume selected scan batches through expressions and operators #32492 已 MERGED(Closes [Subtask]: Migrate expression and operator consumers to dictionary read views #32385、[Subtask]: Enable dictionary scan, filter and projection outputs #32386),merge commit49d552e16cfb7fb9160210d19f2874dc4a71272c在该 main 的祖先链;基础设施来自 #32394([Subtask]: Add dictionary vector representation and immutable ownership #32383)。git_version() = 7fcd9bdff8。原问题验证
selected scan/filter 批次跨 expression 与 operator consumer 边界保留后,SQL 语义不变:10 万行低基数列(10 个 tag 值)+ 高基数对照列 + 含 NULL/重复的侧表上,全部断言精确通过,包括 filter(=、IN、NOT IN、IS NULL)、projection(重复保留、函数求值)、GROUP BY/COUNT DISTINCT、join(重复相乘、NULL 键不匹配)、ORDER BY+LIMIT、prepared 重复执行、混合表达式与写操作。
Happy Path 覆盖
Unhappy Path 覆盖
白盒验证
核对已合入的 #32492:
blockio/publishReaderSelection按批提交选中列头;expression/key encoder/aggregate/payload gather 直接读逻辑行(dictionary_selection.go、scoped_owned_read.go),掩码计算限定活跃行,保留既有 flat/constant 快速路径与原生 decimal 内核。未修改产品源码。回归测试
已追加 matrixorigin/motr#349:
14_issue_regression/issue_32385_32386_dictionary_consumers(33 语句,覆盖上述语义矩阵,同时作为 #32383 中性基础断言)。验收要求的 SF10/SF100 内存/磁盘 gate 与确认的 Q12 加速采用 PR #32492 作者记录的配对证据(五组独立配对进程、Q1–Q22 + Total、spill/swap/OOM 守卫通过);本地未重复 SF100 基准。测试证据
受影响包单测:
pkg/vm/engine/tae/blockio(read/dictionary_selection/scoped_owned_read)、pkg/container/vector、pkg/objectio系列全部通过;聚焦 race 通过;motr 用例 record + 两轮 diff +-j 2并行全绿、逐字节稳定。测试结论
测试通过。
Ariznawlll commentedon Nov 16, 2026
验证通过(comment),回归用例已追加 motr#349。关闭。