Skip to content

Commit

Permalink
Add option to change case of destination/iceberg table names
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismail Simsek committed Jul 24, 2024
1 parent e79fdd2 commit 946abf7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ public void testMapDestination() {
assertEquals(TableIdentifier.of(Namespace.of(namespace), "debeziumcdc_table"), icebergConsumer.mapDestination("table2"));
icebergConsumer.destinationUppercaseTableNames = true;
icebergConsumer.destinationLowercaseTableNames = false;
assertEquals(TableIdentifier.of(Namespace.of(namespace.toUpperCase()), "DEBEZIUMCDC_TABLE_LOWERCASE"), icebergConsumer.mapDestination("table_lowercase"));
assertEquals(TableIdentifier.of(Namespace.of(namespace), "DEBEZIUMCDC_TABLE_LOWERCASE"), icebergConsumer.mapDestination("table_lowercase"));
icebergConsumer.destinationUppercaseTableNames = false;
icebergConsumer.destinationLowercaseTableNames = true;
assertEquals(TableIdentifier.of(Namespace.of(namespace.toLowerCase()), "debeziumcdc_table_camelcase"), icebergConsumer.mapDestination("table_CamelCase"));
assertEquals(TableIdentifier.of(Namespace.of(namespace), "debeziumcdc_table_camelcase"), icebergConsumer.mapDestination("table_CamelCase"));
}

public static class TestProfile implements QuarkusTestProfile {
Expand Down

0 comments on commit 946abf7

Please sign in to comment.