Skip to main content

Meridian Storage ClickHouse

CI License Python

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.1 Adapter SPI. It consumes only the released meridian-storage-core>=1.1,<2, meridian-storage-semantics>=2.0.1,<3, and meridian-storage-query>=1.0.3,<2 packages. Adapter, layout, append, and Query plan contract versions remain unchanged.

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.

Deployment-owned releases and retained gates are documented in release selection.

Metadata

Release files for meridian-storage-clickhouse 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meridian-storage-clickhouse 1.1.1
File Size Uploaded
meridian_storage_clickhouse-1.1.1.tar.gz 61.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meridian-storage-clickhouse 1.1.1
File Interpreter ABI Platform
meridian_storage_clickhouse-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 113.4 kB

Release files / meridian_storage_clickhouse-1.1.1.tar.gz

Download URL meridian_storage_clickhouse-1.1.1.tar.gz
Size 61.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f507b1d658b4f389bc296288d86a5654f9d699879d4ab2ad521e6f31699fda6f
BLAKE2b-256 checksum
How to use checksums
0751983d58133bfa0572fcb8a71ed13979960d46e8646695cd8b1680d327c198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / meridian_storage_clickhouse-1.1.1-py3-none-any.whl

Download URL meridian_storage_clickhouse-1.1.1-py3-none-any.whl
Size 52.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c1583da6a455ea1763f6e03252568212ce762c185f4aa6b7ba10c32f6cce8e8
BLAKE2b-256 checksum
How to use checksums
ca60d8894a3586fe319a1bf5c4d1e3bd52ab355c25856b811e3ea1c5af859c90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.3

2 release files

1.1.2

2 release files

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page