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

Target tables without table-prefix #211

Closed
sripathij opened this issue Jun 13, 2023 · 3 comments
Closed

Target tables without table-prefix #211

sripathij opened this issue Jun 13, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@sripathij
Copy link

I am unable to use debezium.sink.iceberg.destination-regexp and debezium.sink.iceberg.destination-regexp-replace to create tables with the same name as in the source. Looks like that does not replace the table-prefix. It's almost like the table-prefix gets added after the regexp-replace is applied.

@ismailsimsek
Copy link
Member

@sripathij correct it only applies to source schema.tablename

public TableIdentifier mapDestination(String destination) {
final String tableName = destination
.replaceAll(destinationRegexp.orElse(""), destinationRegexpReplace.orElse(""))
.replace(".", "_");
return TableIdentifier.of(Namespace.of(namespace), tablePrefix + tableName);

@ismailsimsek
Copy link
Member

ismailsimsek commented Jun 13, 2023

@sripathij table-prefix is optional configuration you should be able to ommit it, that case it wont be added to target table name

@ismailsimsek
Copy link
Member

Related to quarkusio/quarkus#5947

opened PR for fix

@ismailsimsek ismailsimsek added the bug Something isn't working label Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants