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

Alter source schema by refreshing schema registry #14056

Closed
Rossil2012 opened this issue Dec 19, 2023 · 5 comments
Closed

Alter source schema by refreshing schema registry #14056

Rossil2012 opened this issue Dec 19, 2023 · 5 comments
Assignees
Milestone

Comments

@Rossil2012
Copy link
Contributor

Rossil2012 commented Dec 19, 2023

Track #14057.

@xiangjinwu
Copy link
Contributor

Has this been supported? Could you link the PR?

@Rossil2012
Copy link
Contributor Author

This issue is created by a misclick in #11800.
The work is on going (see #14057).
Let's reopen it as a tracking issue anyway.

@Rossil2012 Rossil2012 reopened this Dec 19, 2023
@neverchanje
Copy link
Contributor

I wonder what is the ultimate syntax for this feature? The protobuf message name can be unchanged when updating the schema in the most common case.

@st1page

@st1page
Copy link
Contributor

st1page commented Dec 28, 2023

I wonder what is the ultimate syntax for this feature? The protobuf message name can be unchanged when updating the schema in the most common case.

@st1page

ALTER SOURCE xx FORMAT xx ENCODE xx (...)
e.g.

   ALTER SOURCE xx FORMAT xx ENCODE xx (...) FORMAT plain ENCODE protobuf(
        schema.registry = 'http://message_queue:8081',
        message = 'test.User'
    );

The encode options will overwrite the old one and re-registry the schema
Altering data_format and data_encode is not supported, in other words, they should be the same the current.

@Rossil2012
Copy link
Contributor Author

Closed as #14057 is merged. alter table with conn is tracked in #11800.

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

No branches or pull requests

5 participants