pub enum SyncError {
Cdc(String),
Olap(String),
Schema(CoreError),
Conversion(String),
UnsupportedType(String),
Serialization(Error),
Other(String),
}Expand description
Errors that can occur during CDC-to-OLAP synchronisation.
Variants§
Cdc(String)
An error returned by the CDC consumer (e.g. polling or pruning failed).
Olap(String)
An error returned by the OLAP engine while executing DML or loading Arrow data.
Schema(CoreError)
A schema-registry error (e.g. table not registered, reserved column name).
Converted automatically from rhei_core::CoreError.
Conversion(String)
A CDC event could not be converted to DML (e.g. missing primary key, NULL PK value).
UnsupportedType(String)
A column type in the CDC event or Arrow schema is not supported by the Arrow batch path. The caller should fall back to the SQL path.
Serialization(Error)
JSON serialisation / deserialisation failed.
Converted automatically from serde_json::Error.
Other(String)
A catch-all variant for errors that do not fit the categories above.
Trait Implementations§
Source§impl Error for SyncError
impl Error for SyncError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SyncError
impl !RefUnwindSafe for SyncError
impl Send for SyncError
impl Sync for SyncError
impl Unpin for SyncError
impl UnsafeUnpin for SyncError
impl !UnwindSafe for SyncError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more