#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum DynamicError {
#[error("unsupported type '{type_str}' for column '{column}'")]
UnsupportedType {
column: String,
type_str: String,
},
#[error("encoding error for column '{column}': {message}")]
EncodingError {
column: String,
message: String,
},
#[error("schema mismatch for table '{table}': {message}")]
SchemaMismatch {
table: String,
message: String,
},
#[error("failed to fetch schema for '{table}': {source}")]
SchemaFetch {
table: String,
#[source]
source: clickhouse::error::Error,
},
#[error("table '{table}' has no columns or does not exist")]
EmptySchema {
table: String,
},
}