Skip to content

Relation Rename Diff - #352

Open
walsykerem wants to merge 3 commits into
ClickHouse:mainfrom
walsykerem:schema-rename-problem
Open

walsykerem wants to merge 3 commits into
ClickHouse:mainfrom
walsykerem:schema-rename-problem

Conversation

@walsykerem

@walsykerem walsykerem commented Nov 25, 2026 •

Copy link
Copy Markdown

Relation Rename Diff

The schema diff now reports relation renames instead of silently dropping later rows.
The fix was tested and migrated into the main project.
Verification found no regressions.


Note

Medium Risk
Touches schema-change detection that gates catalog events and routing keys; the attnum-0 convention must stay aligned with downstream consumers that skip column DDL for these entries.

Overview
compute_schema_diff now treats a change in rel_name as a rename by recording (0, old, new) in renamed_columns, using attnum 0 as a sentinel so name-keyed routing can be updated without implying a column DDL change.

Previously, a table rename with unchanged columns produced an empty diff, so SchemaEvent::Changed was often omitted and downstream replication could miss the rename. A unit test covers the new behavior.

Reviewed by Cursor Bugbot for commit 76f56d5. Bugbot is set up for automated code reviews on this repo. Configure here.

@cla-assistant

cla-assistant Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ walsykerem
❌ Kerem


Kerem seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@walsykerem

Copy link
Copy Markdown
Author

ı did

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 76f56d5. Configure here.

Comment thread src/schema.rs Resolved
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

AI review gate — Cursor Bugbot found issues

  • Cursor Bugbot found issues that are not resolved (check concluded 'neutral').

What to do:

  • All of the reviewer's comment threads are resolved, but its check on this commit still reports issues. Post bugbot run as a new top-level PR comment for a fresh review, or push a commit.
  • Finding wrong, or reviewer stuck? Ask a human with write access who is not the PR author to approve this exact commit, then re-run the gate. Their approval stands in for the AI review (a new push needs a new approval).

Re-run the gate with “Re-run jobs” after an approval or a finished review. A push re-runs it automatically.

@walsykerem

Copy link
Copy Markdown
Author

Re-run jobs

@serprex serprex closed this Nov 26, 2026
@serprex serprex reopened this Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants