Repository navigation
Conversation
…4-ob-column-fidelity
…30-ob-table-clone
…30-ob-table-clone
…30-ob-table-clone
This was referenced Oct 9, 2026
efeire
marked this pull request as ready for review
October 10, 2026 06:56
efeire
marked this pull request as draft
October 10, 2026 09:42
This was referenced Oct 10, 2026
This was referenced Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #11430,依赖 #11483 和 #11391。OceanBase Oracle 表结构克隆从 CTAS 改为按元数据生成 DDL,保留支持的列属性、FLOAT 精度、主键、普通索引及注释,执行前明确复制/排除范围,失败报告已创建对象和人工恢复方式。
真实 GUI 暴露两个问题:虚拟列门禁读取不存在的 ALL_TAB_COLUMNS.VIRTUAL_COLUMN,普通表也无法预览;预览声明排除 UNIQUE 却复制其支撑索引,且遗漏外键排除名称。已改用实际 ALL_TAB_COLS,按可靠约束字典排除支撑索引、补外键名称;保留独立普通 UNIQUE INDEX,缺映射则拒绝,虚拟列仍不支持。
Evidence
Before: 克隆普通表时,旧虚拟列查询读取不存在的字段而失败;声明排除 UNIQUE 却仍复制其支持索引。
After: 两文件接口回归 61 项通过。实际 OB 四入口克隆/结构粘贴、完整列/PK/索引/注释与排除范围独立比对一致,取消、冲突、权限、CREATE 丢响应及部分索引失败正确反馈;三 owner/自有服务清理。最新截断守卫仅有接口回归,未重造实库短行场景。Oracle 既有选项回归仍待,当前引擎拒绝 DESC/内嵌双引号不计通过。
回归与验收范围
已补齐本 PR 新增中文键缺失的目标语言文案;仓库 i18n-autofill 离线 dry-run 通过,已校验占位符和差异。
Merge Danger
Door: two-way(代码);已执行 DDL 需按实际状态单独恢复。
Blast Radius: 表结构克隆与结构粘贴。
DDL 逐条执行,未知或部分失败需核对残留后人工恢复。Oracle 既有克隆选项回归仍待;当前 OceanBase 拒绝 DESC 索引和内嵌双引号列名,这两项未计通过。
自动化状态与界面预览
自动预览只代表对应提交和沙盒场景,不能替代目标数据库的实库验收。
界面预览
当前提交的自动预览记录。以下沙盒截图/录屏展示相关界面,不能代替目标数据库验收;实际测试结果与未验范围见Evidence。