Skip to content

Commit

Permalink
[hotfix] update dbz option name 'xx. whitelist' to 'xx.include.list'(…
Browse files Browse the repository at this point in the history
…xx = database, schema or table) (apache#2212)

(cherry picked from commit ba5fcbc)
  • Loading branch information
senlizishi authored and zhongqishang committed Dec 7, 2023
1 parent a059c6d commit 130c427
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public DebeziumSourceFunction<T> build() {
props.setProperty("database.history.skip.unparseable.ddl", String.valueOf(true));

if (tableList != null) {
props.setProperty("table.whitelist", String.join(",", tableList));
props.setProperty("table.include.list", String.join(",", tableList));
}
if (dbzProperties != null) {
props.putAll(dbzProperties);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ public DebeziumSourceFunction<T> build() {
props.setProperty("database.server.id", String.valueOf(serverId));
}
if (databaseList != null) {
props.setProperty("database.whitelist", String.join(",", databaseList));
props.setProperty("database.include.list", String.join(",", databaseList));
}
if (tableList != null) {
props.setProperty("table.whitelist", String.join(",", tableList));
props.setProperty("table.include.list", String.join(",", tableList));
}
if (serverTimeZone != null) {
props.setProperty("database.serverTimezone", serverTimeZone);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public DebeziumSourceFunction<T> build() {
props.setProperty("database.history.skip.unparseable.ddl", String.valueOf(true));
props.setProperty("database.dbname", checkNotNull(database));
if (schemaList != null) {
props.setProperty("schema.whitelist", String.join(",", schemaList));
props.setProperty("schema.include.list", String.join(",", schemaList));
}
if (tableList != null) {
props.setProperty("table.include.list", String.join(",", tableList));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public OracleSourceConfig create(int subtaskId) {
}

if (schemaList != null) {
props.setProperty("schema.whitelist", String.join(",", schemaList));
props.setProperty("schema.include.list", String.join(",", schemaList));
}

if (tableList != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ public DebeziumSourceFunction<T> build() {
props.setProperty("heartbeat.interval.ms", String.valueOf(DEFAULT_HEARTBEAT_MS));

if (schemaList != null) {
props.setProperty("schema.whitelist", String.join(",", schemaList));
props.setProperty("schema.include.list", String.join(",", schemaList));
}
if (tableList != null) {
props.setProperty("table.whitelist", String.join(",", tableList));
props.setProperty("table.include.list", String.join(",", tableList));
}

if (dbzProperties != null) {
Expand Down

0 comments on commit 130c427

Please sign in to comment.