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 TABLE ADD/DROP CONSTRAINT - add if/if not exists DDL Translation #982

Open
subkanthi opened this issue Jan 30, 2025 · 0 comments
Open
Milestone

Comments

@subkanthi
Copy link
Collaborator

clickhouse-sink-connector-lt_1 | 2025-01-29 23:47:47.770 INFO - Executed Source DB DDL: alter table employees drop CONSTRAINT employees_ibfk_2 Snapshot:false
clickhouse-sink-connector-lt_1 | 2025-01-29 23:47:47.770 INFO - ClickHouse DDL: ALTER TABLE test.employees DROP CONSTRAINT employees_ibfk_2
clickhouse-sink-connector-lt_1 | 2025-01-29 23:47:47.774 ERROR - Error executing DDL
clickhouse-sink-connector-lt_1 | java.sql.SQLException: Code: 36. DB::Exception: Wrong constraint name. Cannot find constraint employees_ibfk_2 to drop. (BAD_ARGUMENTS) (vers
ion 23.8.5.16 (official build))
clickhouse-sink-connector-lt_1 |
clickhouse-sink-connector-lt_1 | at com.clickhouse.jdbc.SqlExceptionUtils.handle(SqlExceptionUtils.java:85) ~[app.jar:?]
clickhouse-sink-connector-lt_1 | at com.clickhouse.jdbc.SqlExceptionUtils.create(SqlExceptionUtils.java:31) ~[app.jar:?]
clickhouse-sink-connector-lt_1 | at com.clickhouse.jdbc.SqlExceptionUtils.handle(SqlExceptionUtils.java:90) ~[app.jar:?]

@subkanthi subkanthi added this to the 2.6.0 milestone Jan 30, 2025
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

1 participant