-
Notifications
You must be signed in to change notification settings - Fork 55
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 tables when copying from postgres #435
Comments
Hi @tellienne , cc: @aadant |
will add a quick fix to replace '-' with '_' for now. |
@subkanthi - should work in clickhouse if the table names are escaped ! Maybe it is an old issue. |
We use docker-image altinityinfra/clickhouse-sink-connector:405-fe4aa9de369b639a59f579a81d0fdd5d3ac32f97-lt. connector logs: the table is called price-history_2023_05. We copy all tables from the public schema without specifying 'table.include.list' |
@subkanthi I believe this was fixed by this bug fix #413 |
@tellienne the fix was added , please try this docker tag |
Hi!
We use the connector to copy data from postgresql to clickhouse. We have a problem related to naming tables in PostgreSQL.
The table name in the PostgreSQL database contains '-', for example, 'test-table-master'. We enabled auto-creation of tables and now the connector tries to create a table with the same name in the clickhouse. As a result, we get a syntax error in clickhose.
Is it possible to replace '-' with '_' when auto-creation of tables in clickhouse is enabled? For example, rename 'test-table-master' on 'test_table_master'.
Or maybe you know another solution? :(
The text was updated successfully, but these errors were encountered: