Skip to content

[Refactoring]: Reduce the number of objects in ConvertOperatorToPhyOperator #21116

Description

@ouyuanning

Why do you want to refactor this code?

减少对象数量,降低gc压力

Describe the solution you'd like

image

看是否可能转成值类型。类似的可能还有
ConvertSourceToPhySource

具体是否要转,如何转。喜亮最终决定即可

Describe alternatives you've considered

No response

Additional information

No response

Activity

  1. added this to the 2.1.0 milestone on Jan 7, 2025
  2. added theissue type on Apr 27, 2025
  3. modified the milestones: 2.1.0, 2506 on Apr 27, 2025
  4. modified the milestones: MO-2506, MO-2507 on Jul 17, 2025
  5. modified the milestones: MO-2507, MO-2508 on Aug 11, 2025
  6. modified the milestones: MO-2508, MO-202603 on Feb 3, 2026
  7. assigned and unassigned on May 6, 2026
  8. VioletQwQ-0 commented on Jul 31, 2026

    @VioletQwQ-0
    Collaborator

    Administrative post-merge closure only; no QA execution is required.

    PR #24279 was merged on 2026-05-06 at 281a057462504fea2eb651148bb6ccb7b17f88cf and formally links this issue. It completed the internal arena-allocation refactor for ConvertOperatorToPhyOperator; the issue owner approved the exact PR head, and the required PR CI plus post-merge TKE suites passed.

    @Ariznawlll, please close this issue as completed. The earlier automatic closure was reopened only because Mergify was not an authorized closing account.

  9. Ariznawlll commented on Oct 28, 2026

    @Ariznawlll
    Collaborator

    结论

    测试通过。

    该项为内部对象分配重构。研发已在本 issue 明确确认 #24279 完成需求、原负责人已审核,并要求按合入后的行政收尾关闭;不是需要补充对外 SQL 场景的产品缺陷。

    关键证据

    • 修复 PR #24279 已合入,merge commit 281a057462504fea2eb651148bb6ccb7b17f88cf;GitHub compare 确认其位于本轮官方 main df8bfd602ecc036424ff7897187565657366919d 的祖先链。
    • 在本地隔离 worktree、macOS/arm64 上按上述 main 源码编译 Go 测试。直接调用 ConvertOperatorToPhyOperator,覆盖 nil 输入、带两个子节点及嵌套叶子的算子树、节点顺序和首末状态,连续 3/3 通过;物理计划处理及展示相关既有测试也以 -count=3 通过。
    • PR 页面可见 Ubuntu UT、TKE BVT、SSB/TPCH、sysbench、TPCC、升级兼容和基本 benchmark 检查成功;merge-update-moc / Update MOC 为失败,不能称所有检查全绿。

    待解决点

    本轮没有重新执行完整 CI 或独立的修复前后 GC/分配量性能对照;上述定向测试仅验证转换树的部分正确性,不声称测量了性能收益。现有修复 PR 未提供独立 Go 回归文件,本轮临时测试未提交到产品仓库;该内部对象分配路径不适合用 MOTR SQL 断言替代。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions