Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 5 min read Announcement mediumAdept

Unordered mode for S3 ClickPipes is now available

S3 ClickPipes in ClickHouse Cloud now support an unordered ingestion mode. Instead of polling the bucket for files that sort lexicographically after the last one ingested, the pipe consumes S3 ObjectCreated event notifications through Amazon SQS, so backfills, retries and late-arriving files are no longer skipped. ClickPipes tracks state in a metadata store and reprocesses failed batches while guaranteeing exactly-once inserts. Setup requires an SQS queue policy, an IAM role trusted by the ClickHouse service with S3 and SQS permissions, and a sorting key on the target table; it can also be configured via the Terraform provider. GCS and Azure support are planned.

Related posts

  • Unordered mode for GCS ClickPipes is now available

    ClickHouse mediumAdept

    GCS ClickPipes in ClickHouse Cloud can now ingest files in any order. Instead of polling the bucket every 30 seconds for the next lexicographically greater filename, the pipe listens for Pub/Sub OBJECT_FINALIZE notifications, so backfills, retries and late-arriving files are no longer silently skipped. Setup involves creating a Pub/Sub topic and subscription, a scoped service account, and a bucket notification configured via gcloud (a dead-letter topic is recommended), then selecting the "Any order" mode. Failed batches are reprocessed automatically with exactly-once guarantees backed by a metadata store, and the same mode already exists for S3, with Azure Blob Storage planned.

  • Getting Data Into ClickHouse - Part 3 - Using S3

    ClickHouse mediumAdept

    ClickHouse can both query data in place on Amazon S3 and ingest it, shown here on an 11.5-billion-row, ~600GB forex tick dataset stored as zstd CSV and Parquet. The s3 table function supports glob patterns and schema inference for ad-hoc queries. A full-dataset aggregation over all 66 pairs took about 583s on one node, about 435s with max_download_threads=12, and about 226s when distributed across the cluster with s3Cluster (roughly 50M rows/s). The examples also use window functions to find the largest daily spread changes and note that Parquet files parse less parallelly than CSV.

  • Bring high-performance analytics to your lakehouse with ClickHouse and Amazon S3 Tables

    ClickHouse mediumAdept

    ClickHouse's DataLakeCatalog engine connects to Amazon S3 Tables through the Iceberg REST endpoint, exposing a table bucket as a ClickHouse database that can be queried in place and written back to, with no data copied out. Reads resolve snapshots via the catalog and prune Parquet columns and row groups. Writes commit through an atomic metadata pointer swap authorized by SigV4/IAM, using a least-privilege policy that includes s3tables:UpdateTableMetadataLocation. A retail walkthrough on ClickHouse 26.8 joins purchases and returns, then writes a curated Iceberg table that other engines and AI agents can reuse. Caveats include single-level namespaces, DROP TABLE requiring purge=true, no ClickHouse Cloud support yet, and a recommendation to materialize into MergeTree for high-concurrency, low-latency dashboards.

  • Ensuring reliable OpenTelemetry ingestion at scale

    ClickHouse mediumAdept

    ClickHouse's LogHouse OpenTelemetry pipeline, ingesting 50 million events per second, absorbs database backpressure by failing over to S3 rather than buffering in memory, local WALs or Kafka. Collector file_storage WALs forced StatefulSets, drained slowly (about 4 hours per TiB) and queued fresh data behind backlog in FIFO order. The final design uses the OTel failoverconnector to route to ClickHouse first and spill to S3 only under backpressure, which limits PUT costs to outage windows. A separate scale-to-zero collector replays spilled blobs via SQS event notifications. Key details include disabling the ClickHouse exporter's sending queue so errors reach the connector, keeping inline retries, enabling the queue on the S3 exporter, and spreading keys across a wide keyspace to avoid prefix throttling.

  • How we built the Internal Data Warehouse at ClickHouse

    ClickHouse mediumAdept

    ClickHouse's internal data warehouse ingests tens of sources (Control Plane, Data Plane, AWS CUR, GCP billing, Salesforce, M3ter and others) into S3 hourly, then loads them into ClickHouse Cloud with the s3 table function and transforms them in SQL. Airflow schedules the work and Superset serves BI to about 100 users. Idempotency comes from ReplicatedReplacingMergeTree with FINAL plus re-runnable DAGs. Consistency comes from insert_quorum=3 rather than "auto", so inserts fail and retry during node restarts instead of leaving replicas incomplete. The team also found it needed a third intermediate business-entity layer beyond raw and mart, chose a single large transformation DAG over Airflow dataset triggers, and drives database-level access control from Google groups mapped to tables, columns and row filters.

The quest for software engineering knowledge.

Look:
Layout: