已合并
B兼容性取消分类型批量执行策略,保持和mysql一致 #2347
wofanzheng创建于 1月8日
B兼容性取消分类型批量执行策略,保持和mysql一致 #2347
已合并
Pull Request已成功合入, 合并人@opengauss_bot
(感谢 wofanzheng 的贡献)1月8日 创建了 pull request,commit f2b5176c
1月8日 添加了label:sig/Plugin
opengauss_bot
1月8日 评论:
1月8日 评论:
Welcome To openGauss Community
Hey @wofanzheng , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: Plugin ,
and any of the maintainers: @Coderejector, @chenxiaobin19 ,
and any of the committers: @dodders, @dreamalloc, @huyinghao, @totaj, @wangfeihuo, @wmy_ld, @wuyuechuan, @xiong_xjun, @zhaojunv3z810 .


1月8日 添加了label:ci-pipeline-running
1月8日 添加了label:codecheck-running
此处折叠了47条消息 查看更多
2月10日 添加了label:codecheck-running
opengauss_bot
2月10日 评论:
2月10日 评论:
opengauss_bot
2月10日 评论:
2月10日 评论:
2月10日 添加了label:codecheck-success
2月10日 删除了label:codecheck-running
【标题】(请简要描述下实现的内容)
修复alter table子命令执行策略与mysql一致
【实现内容】:
修复alter table子命令执行策略与mysql一致
【根因分析】:
在 dolphin B 兼容模式下,ALTER TABLE 语句的子命令应遵循用户书写顺序执行,尤其是包含
AFTER/FIRST的列位置调整与依赖链时。现有实现将子命令按AT_PASS_*进行重排,导致依赖“前一条新增列”的子命令在执行时找不到列,引发报错。【实现方案】:
ATPrepCmd) 将子命令按AT_PASS_*分组。ATRewriteCatalogs) 按 pass 顺序执行,导致子命令重排。ADD ... AFTER+CHANGE/MODIFY ... AFTER的顺序依赖。在 B 兼容模式下记录“原始子命令顺序列表”,Phase 2 先按原序执行该列表,再进入常规 pass 流程处理后续生成的子命令(如 ALTER TYPE 引发的重建)。
【关联需求或issue】:
https://gitcode.com/opengauss/Plugin/issues/1584
【开发自验报告】:
是,在plugin仓添加
不涉及
不涉及
不涉及
不涉及
不涉及
不涉及
【其他说明】:无