pub enum DeltaSchemaError {
ColumnCollision {
column: String,
reserved: String,
},
CounterTable {
keyspace: String,
table: String,
columns: String,
},
CqlTypeParse {
column: String,
source: Error,
},
}Expand description
Errors produced by derive_delta_schema at schema-derivation time.
All errors are raised before any output bytes are written (fail-before-writing guarantee, design §“Error handling”).
Variants§
ColumnCollision
A user column name collides with one of the envelope reserved names.
The error message names the colliding column, the reserved name it
conflicts with, and how to supply a different prefix via
DeltaSchemaOpts::envelope_prefix.
Fields
CounterTable
Counter tables cannot be projected to the delta envelope.
Cassandra counter tables use a fundamentally different on-disk format (distributed counters) that cannot be represented as simple cell deltas. Reject at schema-derivation time rather than silently producing wrong output.
Fields
CqlTypeParse
CQL type parsing failed during schema derivation.
Trait Implementations§
Source§impl Debug for DeltaSchemaError
impl Debug for DeltaSchemaError
Source§impl Display for DeltaSchemaError
impl Display for DeltaSchemaError
Source§impl Error for DeltaSchemaError
impl Error for DeltaSchemaError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()