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]: Add dictionary vector representation and immutable ownership #32383
Add the in-memory representation over one immutable flat/constant snapshot and accounted shared int64 row selections; compose selections, retain backing, preserve per-row metadata and implement transactional copy-on-write/materialization. Keep raw physical access explicit and persisted/wire format unchanged.
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: Neutral infrastructure: no confirmed regression; no production dictionary producer enabled.
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.
Implementation opened as draft #32394: immutable base/selection ownership, typed read views, explicit COW/flattening and serialization guards; no SQL producers enabled. Functional/race and full local pre-push checks pass. The completed source-pinned SF10 all22 RAM/disk screen has no confirmed query or Total regression; its complete wall/CPU tables and Total rows are appended to the PR conversation. SF100 and fresh current-main qualification remain open.
Lease-backed dictionary candidate: local SF10 acceptance complete.
Source pins: main 843929f68611f873ca63674a61ab4b2cdf5ee915; candidate bfd6e89de57fe41e5a64fd9b9d7241da74370283. This candidate includes the newest-main Decimal64 aggregation change on both sides. The current published PR head is still cd15bdb20f; this is an unpublished replacement candidate, and SF100 acceptance remains pending.
The composite descriptor uses the existing dataLease slot, restoring main's 480-byte Vector header/allocation. Local changed-code coverage is 77.89% with the CI parser and unchanged 75% threshold; full static checks and the owning/race proofs pass. This is a neutral foundation gate, with no confirmed Q6 benefit or root-cause claim.
Neutral dictionary foundation screen: PASS. SF100 qualification remains separate.
Five independent process pairs per mode, one excluded cold full suite and one scored warm full suite per startup. All Q1–Q22 are executed/drained. Times below are paired sample means; Total is the sum of per-query wall/CPU times. Raw paired 95% intervals and Holm query tests are retained. No data/result verification.
Activity
aunjgr commentedon Nov 9, 2026
Implementation opened as draft #32394: immutable base/selection ownership, typed read views, explicit COW/flattening and serialization guards; no SQL producers enabled. Functional/race and full local pre-push checks pass. The completed source-pinned SF10 all22 RAM/disk screen has no confirmed query or Total regression; its complete wall/CPU tables and Total rows are appended to the PR conversation. SF100 and fresh current-main qualification remain open.
aunjgr commentedon Nov 9, 2026
aunjgr commentedon Nov 9, 2026
Lease-backed dictionary candidate: local SF10 acceptance complete.
Source pins: main
843929f68611f873ca63674a61ab4b2cdf5ee915; candidatebfd6e89de57fe41e5a64fd9b9d7241da74370283. This candidate includes the newest-main Decimal64 aggregation change on both sides. The current published PR head is stillcd15bdb20f; this is an unpublished replacement candidate, and SF100 acceptance remains pending.The composite descriptor uses the existing
dataLeaseslot, restoring main's 480-byte Vector header/allocation. Local changed-code coverage is 77.89% with the CI parser and unchanged 75% threshold; full static checks and the owning/race proofs pass. This is a neutral foundation gate, with no confirmed Q6 benefit or root-cause claim.Neutral dictionary foundation screen: PASS. SF100 qualification remains separate.
Five independent process pairs per mode, one excluded cold full suite and one scored warm full suite per startup. All Q1–Q22 are executed/drained. Times below are paired sample means; Total is the sum of per-query wall/CPU times. Raw paired 95% intervals and Holm query tests are retained. No data/result verification.
RAM-backed SF10
Disk-backed warm SF10
feat(vector): add shared dictionary storage and row selections (#32394)
XuPeng-SH commentedon Nov 9, 2026
QA 交接:#32394 已合入 main,merge SHA
bf086489bae357159b53f8bcdfc04082ca55b210,本次仅交接 #32383 的 dictionary representation/ownership foundation。未启用 SQL dictionary producer,不能代表 #32379 七阶段系列或 #30845/#30850 已完成。完整 issue/PR 讨论中的旧 follow-up 已重新核对:此前 cd15 的 Q6 回退对应旧额外字段实现,随后 lease-backed 修订恢复 480-byte Vector header,作者在明确源版本上报告 SF10/SF100 中性门槛完成;不是仅用旧通过记录覆盖失败。最新
ac5af16c又以 legacy class-2 归一化为 FLAT 解决 decoder/window panic,最终评审 #32394 (review) 明确无未解决 finding,报告 vector/objectio 396/158 个 top-level tests 通过,并在核对实现未变后复用 shared-owner race 证据。作者报告修改行覆盖 308/391(78.77%,原 75% 门槛)和完整静态检查通过。性能证据仍绑定 main
843929f68611与候选bfd6e89de57f:每个 SF10/SF100 memory/disk profile 五个独立配对进程、完整冷套件排除、Q1–Q22 + Total,报告无确认回退及无 accepted spill/swap/OOM。最终评审复用这些供应证据,没有重新跑 SQL/TPC-H,原始 benchmark samples/CI logs/coverage inputs 未提供。本轮也只核对远端记录,没有本地或 merge SHA 实测,不把中性门槛写成 producer/Q6 加速或最终验收。SF1000 不属于本阶段已批准要求。QA 请重点核对 immutable base/selection 引用与恰好一次释放、嵌套 selection 合成、重复/乱序/NULL/grouping/字符串及 prepared metadata、COW/flatten 分配失败事务性、外部 backing pin 拒绝与 accounted fallback、空输出释放 backing、物理 accessor 显式边界,以及 legacy class-2 全列/流式/V1/object-window 解码兼容、输入不变和 pool/spill 清理。按既有 SF10/SF100 全查询与 Total 规则验证基础设施不回退,后续 consumer/producer 启用单独验收;不自动要求 4.2 backport。
Ariznawlll commentedon Nov 16, 2026
测试版本
7fcd9bdff8433d72983f0399fd5c10dcab91a00a;本 subtask 实现 PR feat(vector): add shared dictionary storage and row selections #32394 已 MERGED,merge commitbf086489bae357159b53f8bcdfc04082ca55b210在该 main 的祖先链。git_version() = 7fcd9bdff8。原问题验证
dictionary 向量表示与 immutable ownership 基础设施按验收标准为中性门槛(无 SQL producer 启用、无确认回退)。QA 交接清单逐项核对:immutable base/selection 引用与恰好一次释放、嵌套 selection 合成、COW/flatten 分配失败事务性、空输出释放 backing、legacy class-2 解码兼容等均由合入源码的配套单测覆盖,全部通过。
Happy Path 覆盖
pkg/container/vector全量单测通过(含 dictionary_ownership/scope/workspace 的所有权、租约、COW、序列化守卫测试);pkg/objectio(+ioutil/mergeutil)legacy_column 兼容测试全部通过。-race:vector 与 disttae 的 Dictionary|Selection|Ownership|Lease|Snapshot 系列测试通过。Unhappy Path 覆盖
白盒验证
核对已合入的 #32394:
DictionaryBase(dictionary_ownership.go)immutable 快照 + 计账共享 int64 selection,组合 selection/保留 backing/按行元数据/事务性 COW 在位;复合描述符复用dataLease槽位(恢复 480 字节 Vector header)。未修改产品源码。回归测试
已追加 matrixorigin/motr#349:
14_issue_regression/issue_32385_32386_dictionary_consumers(含本 subtask 的中性语义断言,33 语句)。PR 作者已在 #32394 内提供源版本钉定的 SF10/SF100 RAM/Disk 中性门槛证据(五组独立配对进程,Q1–Q22 + Total 无确认回退);本地未重复 SF100 基准。测试证据
受影响包单测汇总:
pkg/container/vector、pkg/objectio(+ioutil/mergeutil)、pkg/vm/engine/disttae(+cache)、pkg/vm/engine/tae/blockio、pkg/fileservice全部通过;聚焦 race 通过;motr 回归用例 record + 两轮 diff +-j 2并行全绿、逐字节稳定。测试结论
测试通过(中性基础设施门槛:无确认回退、无 producer 启用)。
Ariznawlll commentedon Nov 16, 2026
中性基础设施门槛验证通过(comment),回归断言在 motr#349。关闭。