Repository navigation
[4.2-dev] fix: support ENUM and YEAR in serial_extract - #33260
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? |
|
This pull request is merged. |
|
mo-bot review · Commit: discussion changed before publication |
追加正确性、鲁棒性、异常路径与性能验证验证对象仍为最终 head 正确性、鲁棒性与异常路径
性能环境:Apple M4、darwin/arm64、Go 1.26.4;每批 1024 行,
两次差值处于运行波动范围内,未观察到稳定性能回退。新增路径的 PR 中位数:ENUM 常量/行索引为 43.008/86.466 µs/batch,YEAR 为 49.481/92.410 µs/batch;这些路径在 base 上直接报错,因此没有可用的同功能性能基线。 边界:未做多 CN、OOM/分配失败或执行中取消故障注入;性能数据仅代表现有本地 darwin/arm64 微基准。 |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: f5a4f4e0b26a085d9f1254cd557127c56e8b3674
Assessment: approve
The ENUM and YEAR dispatch reuses the existing tuple decoders and result types without changing stored encoding. The additional QA discussion raises no unresolved finding.
Model: gpt-6.1-terra / max
Session: 01a21136-dc54-7ba1-aace-4039c02570be · slot 2 · generation 3
Validation:
-
Current receipt 1795621215569566404-2.json verifies the frozen head, base, patch, policy files, discussion coverage, and prior native-input provenance.
-
Reused exact-head isolated test receipt 1795620864673901502-2.json and its retained log: tuple and extraction tests passed, as did all 28 embedded SQL cases.
-
Reused exact-head receipt 1795620920135159467-2.json and its retained log: the complete function package passed.
Limitations:
-
The additional adversarial, restart, race, and benchmark results in the new discussion were reported without raw artifacts and were not independently reproduced.
-
The public SQL check used one CN of an embedded cluster; no separate mo-tester or release-upgrade run was performed.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 20b7c18bdf9dca99262167b6c1f626fc4d2a2608
Assessment: approve
The production fix correctly reuses the existing ENUM and YEAR tuple decoding paths. The new head adds test cleanup and error checks already performed by the test helper.
Model: gpt-6.1-terra / max
Session: 01a21136-dc54-7ba1-aace-4039c02570be · slot 2 · generation 3
Validation:
-
Receipt 1795624297179597671-2.json verifies the current head, clean checkout, four-line test-only delta, formatting, discussion coverage, and retained evidence provenance.
-
Reused prior isolated receipt 1795620864673901502-2.json: tuple and extraction tests and all 28 SQL cases passed.
-
Reused prior receipt 1795620920135159467-2.json: the complete function package passed.
Limitations:
-
The SQL test was not rerun at the new head; the earlier run was at f5a4f4e, before the four additional cleanup and error-check lines.
-
The separately reported adversarial, restart, race, and benchmark results were not independently reproduced.
What type of PR is this?
Which issue(s) this PR fixes:
issue #33258
What this PR does / why we need it:
Backports the
serial_extractENUM/YEAR result dispatch from #26943 to4.2-dev, using the exact named vector typestypes.Enumandtypes.MoYear. Composite secondary-index lookups no longer fail with20101 internal error: not supported type ENUM/YEARwhen extracting those key parts.Regression coverage includes:
INpredicates.ALTER TABLE ... ADD KEY.The backfilled ENUM path relies on the physical-key encoding from #33152, which is already merged into this PR's
4.2-devbase.Validation:
go test ./pkg/sql/plan/function -run '^TestSerialExtractEnumAndYear$' -count=1: PASS.go test ./pkg/sql/plan/function -count=1: PASS.go test ./pkg/tests/issues -run '^TestIssue33258CompositeEnumAndYearIndexLookup$' -count=1 -v: PASS; inline and backfilled groups, including all 28 leaf cases.go vet ./pkg/sql/plan/function ./pkg/tests/issues: PASS.f5a4f4e0b26a085d9f1254cd557127c56e8b3674(binary self-reportedf5a4f4e0b2), confirmed all 31 focused-test PASS records, and passed separateALTER ADD INDEXblack-box probes for ENUM, YEAR, and an INT control.Scope: no full repository suite or multi-CN run; validation used the controlled local darwin/arm64 CGo setup.