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

Renaming a table doesn't work for databases that are mapped to another name in ClickHouse #861

Open
nielsreijers opened this issue Oct 8, 2024 · 0 comments
Assignees
Labels
dev-complete Development completed
Milestone

Comments

@nielsreijers
Copy link

Renaming a table doesn't work for databases that are mapped to another name in ClickHouse.

Versions used

MySQL version: 8.0.39
ClickHouse version: 24.8.4.13
Sink connector version: altinity/clickhouse-sink-connector:2.3.1-lt

Steps to reproduce:

    1. In config.yml set clickhouse.database.override.map: "testdb:testdb_sink"
    1. In MySQL testdb create table foo (id int primary key), insert into foo(id) values (1) -> table appears in ClickHouse testdb_sink as expected.
    1. In MySQL testdb rename table foo to bar -> ClickHouse is not updated, and the sink connector's container log shows this error:
clickhouse-sink-connector-lt-1  | 2024-10-08 03:35:59.950 ERROR - Error running DDL Query: java.sql.SQLException: Code: 81. DB::Exception: Database testdb does not exist. (UNKNOWN_DATABASE) (version 24.8.4.13 (official build))
clickhouse-sink-connector-lt-1  | , server ClickHouseNode [uri=http://servername:8123/system, options={custom_settings=allow_experimental_object_type=1,insert_allow_materialized_columns=1,client_name=Client_1}]@-2121739127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-complete Development completed
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants