Skip to content

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

ClickHouse 7 min read How-to mediumAdept

Visualizing Data with ClickHouse - Part 3 - Metabase

Metabase connects to ClickHouse via a plugin driver over the HTTP port and suits less SQL-savvy business users through its drag-and-drop "question" builder, while a SQL editor handles complex charts by pushing all transformation into the query. Worked examples on NOAA weather, forex and UK house price datasets produce region, grid and pin maps, waterfall, combo and funnel charts using ClickHouse functions such as geohashEncode, dictGet, window functions, arrayJoin and -If combinators. Compared with Grafana (time series, SQL-heavy) and Superset (analyst-focused SQL editor and reusable datasets), Metabase trades visual breadth and customization for a simpler workflow.

Related posts

  • Visualizing Data with ClickHouse - Part 2 - Superset

    ClickHouse mediumAdept

    Apache Superset can be run via docker-compose with the clickhouse-connect driver to build charts and dashboards over ClickHouse data. The walkthrough covers connecting to the public sql.clickhouse.com instance, creating datasets from tables or saved SQL queries, and building line charts, treemaps, calendar heatmaps, country maps, box plots, word clouds and mixed charts. Example ClickHouse queries use window functions, medianIf/anyIf aggregates, dictionaries with dictGet, and array functions to compute word shingles.

  • Visualizing Data with ClickHouse - Part 1 - Grafana

    ClickHouse mediumAdept

    Grafana connects to ClickHouse through the official ClickHouse plugin (version 2.x adds JSON and HTTP support) by creating a datasource and building dashboard panels with a query builder or raw SQL. Worked examples against the play.clickhouse.com datasets cover a monthly bar chart of Hacker News mentions, multi-series forex lines using the $__timeFilter macro and argMax, and candlesticks built with argMin/argMax/min/max. They also include a geohash-bucketed temperature heatmap on GeoMap and a log explorer view whose severity level is derived from HTTP status codes. Multi-line charts need a string series column, and SETTINGS max_result_rows lifts the playground's result limits.

  • Adding Real Time Analytics to a Supabase Application With ClickHouse

    ClickHouse mediumAdept

    HouseClick, a demo estate-agency app, keeps ~1000 current listings in Supabase Postgres and serves analytics over the ~30M-row UK house price dataset from ClickHouse Cloud. The app first queried ClickHouse directly via its JS client, then switched to Supabase's ClickHouse Foreign Data Wrapper so Postgres pushes queries down to ClickHouse and returns only aggregated results. That gives developers a single SQL interface and lets them join transactional and analytical data without ETL. The post also contrasts OLTP and OLAP workloads and walks through FDW setup, best practices, and options for syncing transactional data into ClickHouse.

  • Announcing the new ClickHouse SQL Playground

    ClickHouse mediumAdept

    sql.clickhouse.com is a new public SQL playground offering over 35 datasets (60 TB) and 220 example queries, with syntax highlighting, autocomplete, query parameters, basic charting via Apache ECharts and shareable links. It is a NextJS/React single-page app talking directly to ClickHouse's HTTP interface. Read-only credentials are exposed safely by combining RBAC, query complexity limits (10 billion rows read, 1000 rows returned) and per-IP quotas of 60 queries per hour. The service runs on a fixed 3-node, 30-vCPU ClickHouse Cloud cluster backed by object storage. Live query progress polls system.processes every 100ms by query ID under a separate monitor user, avoiding HTTP progress headers that the browser fetch API can't read.

  • How LINE MANGA used ClickHouse to enable real-time analysis without moving a single row

    ClickHouse easyNovice

    LINE MANGA uses ClickHouse as a federated query layer over its horizontally and vertically sharded MySQL fleet, querying data in place rather than ingesting it. Virtual tables built with the MySQL Table and Database Engines push filter conditions down to each MySQL shard and aggregate the results in ClickHouse. That lets engineers join product metadata with user purchases across servers and total platform-wide sales in a single SQL query, with no ETL lag and no copying of sensitive or audit-restricted data. Engineers test queries locally with clickhouse-local, Docker Compose and IntelliJ, while production queries go through an audit-compliant gateway. MySQL remains the system of record.

The quest for software engineering knowledge.

Look:
Layout: