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.0.1 Adapter SPI. It consumes only the released meridian-storage-core==1.0.1, meridian-storage-semantics==2.0.0, and meridian-storage-query==1.0.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.

Metadata

Release files for meridian-storage-clickhouse 1.0.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.0.1
File Size Uploaded
meridian_storage_clickhouse-1.0.1.tar.gz 55.2 kB Details

Built distribution (wheel)

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

Total release size: 105.5 kB

Release files / meridian_storage_clickhouse-1.0.1.tar.gz

Download URL meridian_storage_clickhouse-1.0.1.tar.gz
Size 55.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5666a54de62377c006b2ac1a7209100744331464e0061edad29750947943f7e9
BLAKE2b-256 checksum
How to use checksums
f5322d6c3a6be88fab22a44c0f651f6ef3e5aca1aca63f82a440e8680c53f4e1
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 7, 2026.

Transparency log

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

Download URL meridian_storage_clickhouse-1.0.1-py3-none-any.whl
Size 50.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3d810666caff07a969f6bf1c121dea05e2bdc2fb019c723cb14540bd78230e5
BLAKE2b-256 checksum
How to use checksums
ec2b3a54d6474540cb0571eb0db3149168bab5b4849bd20da74976ee4cb78deb
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 7, 2026.

Transparency log

Release history Release notifications | RSS feed

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

This release

1.0.1 This release

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