mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-29 01:03:17 +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>
892 B
892 B
- Own trace schema, row encoding, SQL query adapters and reader provisioning; consume domain types from
litellm-traces - Keep generic ClickHouse connections and HTTP execution in
litellm-storage-clickhouse; keep PyO3 conversion inpython-bridge - Keep schema definitions only in
migrations/NNNN_description.sql, embedded bysqlx::migrate! - Treat retention TTLs as current configuration: change them in
RETENTIONinsrc/schema.rs, which every startup reapplies, never in a new migration - Require typed query parameters and SELECT-only readers with server-side limits and tenant isolation
- Bound insert time and encoded bytes; preserve shared values and explicit retry deduplication
- Test storage behavior through the public API against ClickHouse
- Expose one top-level
Errorenum insrc/error.rs; own trace failures and wrap storage errors with#[from]or#[source]