mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-03 01:38:46 +00:00
* refactor(rust): track ClickHouse migrations in a checksummed ledger Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix(clickhouse): harden migration execution and reuse retention SQL * refactor(rust): track ClickHouse migrations in a checksummed ledger Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * docs(rust): keep ClickHouse retention TTLs in the current policy list Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Yujong Lee <yujong@berri.ai> Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
33 lines
1.2 KiB
Rust
33 lines
1.2 KiB
Rust
#[derive(Clone, Debug, thiserror::Error)]
|
|
pub enum Error {
|
|
#[error("invalid ClickHouse insert row")]
|
|
InvalidRow,
|
|
#[error("{0} must be a positive integer")]
|
|
InvalidLimit(&'static str),
|
|
#[error("invalid ClickHouse insert table")]
|
|
InvalidTable,
|
|
#[error("invalid ClickHouse HTTP URL")]
|
|
InvalidUrl,
|
|
#[error("database must be a nonempty SQL identifier and retention must be positive")]
|
|
InvalidSchema,
|
|
#[error("SQL query must not be empty")]
|
|
EmptySql,
|
|
#[error("invalid ClickHouse query parameters")]
|
|
InvalidParameters,
|
|
#[error("unknown ClickHouse read query")]
|
|
InvalidQuery,
|
|
#[error("ClickHouse query failed with HTTP status {0}")]
|
|
QueryFailed(u16),
|
|
#[error("ClickHouse insert failed with HTTP status {0}")]
|
|
InsertFailed(u16),
|
|
#[error("ClickHouse insert exceeds the encoded size limit")]
|
|
InsertTooLarge,
|
|
#[error("ClickHouse schema setup failed with HTTP status {0}")]
|
|
SchemaFailed(u16),
|
|
#[error("ClickHouse query exceeded the response size limit")]
|
|
ResponseTooLarge,
|
|
#[error("ClickHouse returned an invalid or failed JSON query response")]
|
|
InvalidResponse,
|
|
#[error("ClickHouse query transport failed")]
|
|
Transport,
|
|
}
|