Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: End-to-end schema change #16834

Open
2 tasks
neverchanje opened this issue May 20, 2024 · 0 comments
Open
2 tasks

Discussion: End-to-end schema change #16834

neverchanje opened this issue May 20, 2024 · 0 comments

Comments

@neverchanje
Copy link
Contributor

neverchanje commented May 20, 2024

This proposal aims to explore the feasibility of automating the schema changes of sources, tables and sinks when a schema change happened in the upstream.

Screenshot 2024-05-20 at 18 02 50

Let's consider a case where a schema change (add column) is made to a PG table, from which a RisingWave CDC table is set up. In order to land the table change through table and sink and finally onto the destination, a StarRocks table, we have to execute 3 consecutive ALTER ADD COLUMN commands.

  1. ALTER TABLE tbl ADD COUMN in RW
  2. ALTER SINK snk ADD COUMN in RW, which it's not yet supported.
  3. ALTER TABLE tbl ADD COLUMN in SR.

Based on the breakdown of the schema change, it's apparent that we can introduce some automation to table and sink to eliminate these tedious works. That is,

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

No branches or pull requests

1 participant