Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeW committed Aug 19, 2024
1 parent 9bff661 commit 4c10666
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/src/cdc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

/// Build a unique CDC table identifier from a source ID and external table name
pub fn build_cdc_table_id(source_id: u32, external_table_name: &str) -> String {
format!("{}_{}", source_id, external_table_name)
format!("{}.{}", source_id, external_table_name)
}
3 changes: 2 additions & 1 deletion src/connector/src/parser/unified/debezium.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

use itertools::Itertools;
use risingwave_common::build_cdc_table_id;
use risingwave_common::catalog::{ColumnCatalog, ColumnDesc, ColumnId};
use risingwave_common::types::{
DataType, Datum, DatumCow, Scalar, ScalarImpl, ScalarRefImpl, Timestamptz, ToDatumRef,
Expand Down Expand Up @@ -232,7 +233,7 @@ pub fn parse_schema_change(
}

// concatenate the source_id to the cdc_table_id
let cdc_table_id = format!("{}_{}", source_id, id.replace('"', ""));
let cdc_table_id = build_cdc_table_id(source_id, id.replace('"', ""));
schema_changes.push(TableSchemaChange {
cdc_table_id,
columns: column_descs
Expand Down

0 comments on commit 4c10666

Please sign in to comment.