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.2

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.2
File Size Uploaded
meridian_storage_clickhouse-1.1.2.tar.gz 62.9 kB Details

Built distribution (wheel)

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

Total release size: 116.4 kB

Release files / meridian_storage_clickhouse-1.1.2.tar.gz

Download URL meridian_storage_clickhouse-1.1.2.tar.gz
Size 62.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ca64f6a3127e81af5da10e8e4a70624d3d54a54d6722f1af73fcda855d9d7412
BLAKE2b-256 checksum
How to use checksums
7d5ceb888f4f31b6475825a8f5502da361652ca379616d7a5d48b21ee1b488cb
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.2-py3-none-any.whl

Download URL meridian_storage_clickhouse-1.1.2-py3-none-any.whl
Size 53.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e15a97216ca6fecfdcd68b50cd11cd130e35da1051e5e80282e25787315af540
BLAKE2b-256 checksum
How to use checksums
1f6e26bb9464602efc685e4dea0e10ddc1881d53889025abb18a6739b78a83e9
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

This release

1.1.2 This release

2 release files

1.1.1

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