Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeW committed Jun 5, 2024
1 parent ebbe457 commit 5f09a75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/connector/src/parser/unified/debezium.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,22 +212,22 @@ where
.value_accessor
.as_ref()
.expect("value_accessor must be provided for upsert operation")
.access(&[SOURCE, SOURCE_DB], Some(&desc.data_type)),
.access(&[SOURCE, SOURCE_DB], &desc.data_type),
ColumnType::SchemaName(_) => self
.value_accessor
.as_ref()
.expect("value_accessor must be provided for upsert operation")
.access(&[SOURCE, SOURCE_SCHEMA], Some(&desc.data_type)),
.access(&[SOURCE, SOURCE_SCHEMA], &desc.data_type),
ColumnType::TableName(_) => self
.value_accessor
.as_ref()
.expect("value_accessor must be provided for upsert operation")
.access(&[SOURCE, SOURCE_TABLE], Some(&desc.data_type)),
.access(&[SOURCE, SOURCE_TABLE], &desc.data_type),
ColumnType::CollectionName(_) => self
.value_accessor
.as_ref()
.expect("value_accessor must be provided for upsert operation")
.access(&[SOURCE, SOURCE_COLLECTION], Some(&desc.data_type)),
.access(&[SOURCE, SOURCE_COLLECTION], &desc.data_type),
_ => Err(AccessError::UnsupportedAdditionalColumn {
name: desc.name.clone(),
}),
Expand Down

0 comments on commit 5f09a75

Please sign in to comment.