The day the sky emptied: rendering the FAA outage with ClickHouse FORMAT PNG
ClickHouse's built-in FORMAT PNG output renders an animated map of the November 13, 2026 FAA outage directly from SQL, with no plotting library. A query over the 380-billion-row adsb.exposed table pre-aggregates positions into per-frame, per-pixel rows using Morton-ordered Web Mercator coordinates and bit shifts. A second query paints four layers (a day-long ghost, the aircraft, a timeline and bitmap-font text) via ARRAY JOIN and the painter's algorithm, producing about 130 million pixel rows and 288 frames in 31 seconds. The data shows cruising-altitude traffic falling to under a tenth of its early-afternoon level by 20:00 ET; the post also covers float clamping, streaming animation mode to cut memory from 1.2 GB, and palette conversion shrinking the APNG from 150 MB to 25 MB.
Related posts
- Announcing adsb.exposed - Interactive Visualization and Analytics on ADS-B Flight Data with ClickHouse
ClickHouse mediumAdept
adsb.exposed renders tens of billions of ADS-B flight records as interactive map tiles. A parameterized ClickHouse SQL query computes the RGBA value of every pixel in each 1024x1024 tile on the fly. The single-page Leaflet frontend fetches raw RowBinary bitmaps over HTTP with ZSTD compression, which compresses better than PNG, and loads progressively from 1% and 10% sampled tables, built with materialized views, up to the full data. The MergeTree table stores Web-Mercator coordinates as UInt32 materialized columns and is ordered by a Morton curve with minmax indexes, so each tile query reads only the data it needs. The service runs on a chaos-tested ClickHouse Cloud staging environment, with requests raced against a backup service.
- Global weather data from flying airplanes
ClickHouse mediumAdept
Weather can be inferred from ADS-B airplane telemetry stored in ClickHouse by comparing air-relative and ground-relative measurements. The gap between barometric and geometric altitude maps pressure variation, and track minus true heading gives the crab (drift) angle. Law-of-cosines formulas on ground speed, true airspeed and drift angle yield wind speed and direction. Per-pixel aggregation uses a speed-weighted vector average of wind angles, converting to x/y and back with atan2, and the results are rendered with OKLCH hue via ClickHouse color functions. The resulting wind maps match real weather data, and a bonus section shows how to script and ffmpeg-process animated map videos.
- Visualizing Foursquare places with ClickHouse
ClickHouse mediumAdept
The Foursquare open places dataset (about 100 million records) loads straight from S3 Parquet into ClickHouse in 42 seconds and 11 GB. The table stores Web Mercator coordinates as materialized UInt32 columns, is ordered by a Morton (Z-order) space-filling curve, and has minmax indices so map tiles can be queried fast. The existing adsb.exposed air-traffic visualizer was reused with a 48-line change to render pixel-level tiles in the browser. Compared with Foursquare Studio's H3 hexagons, Kepler.gl and DuckDB-based maps, it gives higher resolution and smoother interactivity, but does not correct point density for latitude.
- How Grupo MasMovil Monitors Radio Access Networks with ClickHouse
ClickHouse mediumAdept
Grupo MasMovil replaced legacy telecom monitoring tools with ClickHouse to track thousands of radio access network nodes that emit hundreds of counters every 15 minutes, roughly 3 TB per day. Rather than precomputing KPIs for every temporal and spatial aggregation in an OLAP-cube style, they store only raw cell-level counters enriched with topology columns and compute KPI formulas at query time in SQL. This avoids the distortion of averaging precomputed ratios and lets Grafana switch between aggregations dynamically. Results after 18 months: 16x less disk while retaining a year of 15-minute data, 10x less CPU and memory, and publication delay cut from 3 hours to 15 minutes.
- Analyzing AWS Flow Logs using ClickHouse
ClickHouse mediumAdept
VPC Flow Logs exported to S3 as Parquet can be loaded into ClickHouse and queried with SQL to find rejected traffic, top talkers, internet ingress/egress and costly cross-AZ transfers. The walkthrough infers a schema with clickhouse local, then tunes it with LowCardinality strings, IPv4 and DateTime types, an Enum for action, and a sort key on action, srcaddr, dstaddr, protocol and time. About 517M rows compress to 2.3 GiB. Import runs via the s3() table function in roughly 12 minutes, and aggregation queries finish in 0.6 to 30 seconds. Enriching flows with EC2 metadata from the AWS API supplies the availability zone mapping needed to attribute cross-AZ traffic.