Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/storage-types/src/sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -884,6 +884,7 @@ impl crate::AlterCompatible for SourceExportDetails {
(Self::Kafka(s), Self::Kafka(o)) => s.alter_compatible(id, o),
(Self::Postgres(s), Self::Postgres(o)) => s.alter_compatible(id, o),
(Self::MySql(s), Self::MySql(o)) => s.alter_compatible(id, o),
(Self::SqlServer(s), Self::SqlServer(o)) => s.alter_compatible(id, o),
(Self::LoadGenerator(s), Self::LoadGenerator(o)) => s.alter_compatible(id, o),
_ => Err(AlterError { id }),
};
Expand Down
19 changes: 19 additions & 0 deletions src/storage-types/src/sources/sql_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,25 @@ pub struct SqlServerSourceExportDetails {
pub initial_lsn: mz_sql_server_util::cdc::Lsn,
}

impl AlterCompatible for SqlServerSourceExportDetails {
fn alter_compatible(
&self,
_id: GlobalId,
_other: &Self,
) -> Result<(), crate::controller::AlterError> {
// compatibility checks are performed against the upstream table in the source
// render operators instead
let Self {
capture_instance: _,
table: _,
text_columns: _,
exclude_columns: _,
initial_lsn: _,
} = self;
Ok(())
}
}

impl SourceTimestamp for Lsn {
fn encode_row(&self) -> mz_repr::Row {
Row::pack_slice(&[Datum::Bytes(&self.as_bytes())])
Expand Down
Loading