Meridian Storage ClickHouse
meridian-storage-clickhouse is the independently released ClickHouse adapter for Meridian
V1. It executes mapping-first, engine-neutral Operations for stored logs, spans, metric points,
usage, cost, and generic analytical time-series Records. It provides deterministic schema and
migration plans, bounded idempotent batch ingestion, mandatory time-bounded query pushdown,
live keyset pagination, result normalization, authenticated probes, and physical fingerprints.
The distribution contributes exactly one adapter package,
meridian_storage.adapters.clickhouse, and discovers through the released Meridian Core 1.0.0
Adapter SPI. It consumes only the released meridian-storage-core,
meridian-storage-semantics, and meridian-storage-query 1.0.0 contracts.
Boundary
Application code does not import this package, create a ClickHouse client, issue SQL, select a
table engine, or provide an endpoint. It uses the registered evidence or structured Catalog
Expression surface. The composition root starts Meridian after deployment IaC has injected an
opaque Binding:
from meridian_storage import Meridian, OperationContext
meridian = Meridian.from_environment()
meridian.start()
evidence = meridian.catalog("evidence")
with meridian.context(
OperationContext(
principal_ref="identity:service/worker",
tenant="tenant-a",
scope={"workspace": "operations"},
)
):
result = meridian.execute(
evidence.query(
resource="runtime.logs",
where={
"event_time": {
"gte": "2026-08-25T00:00:00Z",
"lt": "2026-08-26T00:00:00Z",
}
},
limit=100,
)
)
Collector deployment, topology, credentials, ACLs, retention, backups, restores, and migration job lifecycle remain owned by Platform or Vangu IaC through MeridianConstructs. Runtime startup only authenticates, probes compatibility, and verifies pre-provisioned physical fingerprints.
Guarantees and limits
- Writes are append-oriented and idempotent only within the advertised retry/deduplication window. The adapter does not claim general exactly-once execution.
- Every scan and aggregate requires a bounded UTC time range within the Binding limit.
- Scope isolation is injected ahead of user predicates and leads every table sort key.
- Visibility is eventual. General transactions, compare-and-set, authoritative patch, foreign keys, cross-Binding joins, and native SQL Expressions are denied.
- Decimal, timestamp, UUID, bytes, JSON, nullable, and quantile values are normalized back to Meridian wire representations. Percentiles use the exact ClickHouse quantile function in V1.
Adapter-author and IaC integration
The public adapter-author surface includes ClickHouseAdapterFactory,
ClickHouseSchemaCompiler, ClickHouseMigrator, ClickHouseQueryTranslator,
adapter_descriptor, capability_manifest, and plan_initial_migration. These are deployment
and adapter integration contracts, not business APIs. See
architecture.md, configuration.md,
operations.md, migrations.md, and
conformance.md.
Development
python -m venv .venv
.venv/bin/python -m pip install -e '.[test]'
.venv/bin/ruff check .
.venv/bin/mypy src
.venv/bin/pytest -m 'not integration and not cluster'
./scripts/run-standalone-conformance.sh
./scripts/run-cluster-conformance.sh
Real-engine tests use disposable ClickHouse containers and never target a deployment-owned
database. See tests/integration and tests/cluster for the exact profiles.
License
Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meridian_storage_clickhouse-1.0.0.tar.gz.
File metadata
- Download URL: meridian_storage_clickhouse-1.0.0.tar.gz
- Upload date:
- Size: 54.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca0437c622b2055b5158668244cf7b35a6c13eeb8dfab3d3529f892f296af99e
|
|
| MD5 |
1de3fb59d3320082cc2baa959e51050b
|
|
| BLAKE2b-256 |
76f8524d23b94e53634dd417521707d303a1eb9cd7982f4c44f0139d2a1ef37a
|
Provenance
The following attestation bundles were made for meridian_storage_clickhouse-1.0.0.tar.gz:
Publisher:
release.yml on zephytiju/meridian-storage-clickhouse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meridian_storage_clickhouse-1.0.0.tar.gz -
Subject digest:
ca0437c622b2055b5158668244cf7b35a6c13eeb8dfab3d3529f892f296af99e - Sigstore transparency entry: 2596027366
- Sigstore integration time:
-
Permalink:
zephytiju/meridian-storage-clickhouse@e3a105807b80aa10e8bc91b07d2fffde8862157f -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/zephytiju
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e3a105807b80aa10e8bc91b07d2fffde8862157f -
Trigger Event:
push
-
Statement type:
File details
Details for the file meridian_storage_clickhouse-1.0.0-py3-none-any.whl.
File metadata
- Download URL: meridian_storage_clickhouse-1.0.0-py3-none-any.whl
- Upload date:
- Size: 50.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2f0839c9fc3d0b97d4ee4c1ad85c1debc6f00283a643bc361b9ea48dbd70534
|
|
| MD5 |
32330659868f5a57f2cfec95a2d5b3d2
|
|
| BLAKE2b-256 |
11f4d1595fdfd17cabd9d35817eec582742b924fd87cbc4bcf64c3c4c637e4bc
|
Provenance
The following attestation bundles were made for meridian_storage_clickhouse-1.0.0-py3-none-any.whl:
Publisher:
release.yml on zephytiju/meridian-storage-clickhouse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meridian_storage_clickhouse-1.0.0-py3-none-any.whl -
Subject digest:
b2f0839c9fc3d0b97d4ee4c1ad85c1debc6f00283a643bc361b9ea48dbd70534 - Sigstore transparency entry: 2596027769
- Sigstore integration time:
-
Permalink:
zephytiju/meridian-storage-clickhouse@e3a105807b80aa10e8bc91b07d2fffde8862157f -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/zephytiju
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@e3a105807b80aa10e8bc91b07d2fffde8862157f -
Trigger Event:
push
-
Statement type: