ClickHouse HOLs
GitHub

Hands-on ClickHouse labsClickHouse 실습 랩

One directory per ClickHouse release, plus Cloud integrations, workload experiments and workshops. Every lab brings up what it needs, generates its own data, and can be run on its own.ClickHouse 릴리스마다 디렉토리 하나, 여기에 Cloud 연동·워크로드 실험·워크숍을 더했습니다. 각 랩은 필요한 환경을 스스로 띄우고 테스트 데이터를 생성하므로 독립적으로 실행됩니다.

22release labs릴리스 랩
25.1 → 26.10versions covered다루는 버전
81runnable SQL labs실행 가능한 SQL 랩

Release labs릴리스 랩

Each directory holds runnable SQL for that version's new features, with a bilingual guide.각 디렉토리에는 해당 버전 신기능의 실행 가능한 SQL과 영/한 가이드가 들어 있습니다.

Version버전Released출시일Labs랩Verified검증Features covered다루는 기능
26.10 2026-10-22 5 26.10.3.7 LATERAL JOIN + OUTER joins on any ON, function composition and _ placeholders, IN sets spilling to disk, LogsQL dialect, XGBoost dictionaryLATERAL JOIN + 임의 ON의 OUTER 조인, 함수 합성과 _ 플레이스홀더, IN 집합 디스크 스필, LogsQL 방언, XGBoost 딕셔너리
26.9 2026-09-21 4 26.9.1.1629 LIMIT ... AFTER / UNTIL, keyValuePairs text index tokenizer, ZSTD(3) as the default codec, CREATE TOKEN + scoped GRANTSLIMIT ... AFTER / UNTIL, keyValuePairs 텍스트 인덱스 토크나이저, 기본 코덱 ZSTD(3), CREATE TOKEN + 범위 제한 GRANTS
26.8 2026-08-30 3 26.8.2.7 Pipe operators |>, GROUPS window frame mode, japanese / chinese / icu tokenizers파이프 연산자 |>, GROUPS 윈도우 프레임, japanese·chinese·icu 토크나이저
26.7 2026-07-22 3 26.7.1 EXPLAIN ANALYZE, AT TIME ZONE / AT LOCAL, groupFormat + -Tuple combinatorEXPLAIN ANALYZE, AT TIME ZONE / AT LOCAL, groupFormat + -Tuple 조합자
26.6 2026-06-25 3 26.6.2 Hypothetical indexes + EXPLAIN WHATIF, ADD ENUM VALUES, SQL compatibility (SOME/ALL, * LIKE, ESCAPE, date_part)가상 인덱스 + EXPLAIN WHATIF, ADD ENUM VALUES, SQL 호환성 (SOME/ALL, * LIKE, ESCAPE, date_part)
26.5 2026-05-21 3 26.5.1.882 filesystem() table function, bare function names + isPrime, tokenizeQuery / highlightQueryfilesystem() 테이블 함수, 베어 함수 이름 + isPrime, tokenizeQuery / highlightQuery
26.4 2026-04-30 3 26.4.3.37 NATURAL JOIN on VALUES, array functions, string/text functionsVALUES에 대한 NATURAL JOIN, 배열 함수, 문자열/텍스트 함수
26.3 2026-03-26 3 26.3.12.3 Materialized CTE, natural sort key, Unicode functions구체화 CTE, 자연 정렬 키, 유니코드 함수
26.2 2026-02-26 3 26.2.19.43 primes() function, XXH3-128 hash, system.tokenizersprimes() 함수, XXH3-128 해시, system.tokenizers
26.1 2026-01-29 3 26.1.12.23 reverseBySeparator, text index for arrays, Keeper HTTP APIreverseBySeparator, 배열 텍스트 인덱스, Keeper HTTP API
25.12 2025-12-18 3 25.12.11.4 HMAC function, Naive Bayes classifier, JOIN order optimization (DPSize)HMAC 함수, 나이브 베이즈 분류기, JOIN 순서 최적화 (DPSize)
25.11 2025-11-27 4 25.11.2.24 HAVING without GROUP BY, fractional LIMIT, Map aggregation, geometry functionsGROUP BY 없는 HAVING, 소수 LIMIT, Map 집계, 기하 함수
25.10 2025-10-30 5 25.10.7.6 QBit vector search, negative LIMIT/OFFSET, JOIN improvements, LIMIT BY ALL, auto statisticsQBit 벡터 검색, 음수 LIMIT/OFFSET, JOIN 개선, LIMIT BY ALL, 자동 통계
25.9 2025-09-25 4 25.9.7.56 Global join reordering, text index, streaming secondary indices, arrayExcept전역 조인 재정렬, 텍스트 인덱스, 스트리밍 보조 인덱스, arrayExcept
25.8 2025-08-28 6 25.8.28.1 New Parquet reader, hive partitioning, temp data on S3, UNION ALL _table, data lake features, MinIO신규 Parquet 리더, hive 파티셔닝, S3 임시 데이터, UNION ALL _table, 데이터 레이크, MinIO
25.7 2025-07-24 4 25.7.8.71 SQL UPDATE/DELETE, count() optimization, JOIN performance, bulk UPDATESQL UPDATE/DELETE, count() 최적화, JOIN 성능, 대량 UPDATE
25.6 2025-06-26 5 25.6.13.41 CoalescingMergeTree, Time/Time64 types, Bech32 encoding, lag/lead, consistent snapshotCoalescingMergeTree, Time/Time64 타입, Bech32 인코딩, lag/lead, 일관된 스냅샷
25.5 2025-05-22 5 25.5.11.15 Vector similarity index, Hive Metastore catalog, implicit table, new functions, geo types in Parquet벡터 유사도 인덱스, Hive Metastore 카탈로그, 암시적 테이블, 신규 함수, Parquet 지오 타입
25.4 2025-04-30 3 25.4.13.22 Array Levenshtein distance, sparseGrams, toInterval and editable database comments배열 Levenshtein 거리, sparseGrams, toInterval과 수정 가능한 DB 코멘트
25.3 2025-03-20 3 25.3.14.14 New functions (arraySymmetricDifference, keccak256), query condition cache, estimateCompressionRatio신규 함수(arraySymmetricDifference, keccak256), 쿼리 조건 캐시, estimateCompressionRatio
25.2 2025-03-07 3 25.2.2.39 Parquet Bloom filters, Backup database engine, stringCompare and the progress formatsParquet Bloom 필터, Backup 데이터베이스 엔진, stringCompare와 진행 포맷
25.1 2025-02-07 3 25.1.8.25 Automatic minmax indices, Merge tables unifying schemas as Variant, sequenceMatchEvents자동 minmax 인덱스, Merge 테이블의 Variant 스키마 통합, sequenceMatchEvents

Verified names the exact server build every lab in that directory was run against, end to end, with zero exceptions. Getting all nineteen there took fixing eleven of them: SQL referencing functions and settings that do not exist, arguments in the wrong order, aliases shadowing the column they aggregated. Re-run any of them with .github/scripts/verify_release_lab.sh <version>.검증은 해당 디렉토리의 모든 랩을 예외 0으로 끝까지 실행해 본 정확한 서버 빌드입니다. 19개 전부를 그 상태로 만드는 데 11개를 고쳐야 했습니다 — 존재하지 않는 함수·설정 참조, 뒤바뀐 인자 순서, 집계 대상 컬럼을 가리는 별칭 같은 문제였습니다. 직접 재현하려면 .github/scripts/verify_release_lab.sh <버전> 을 실행하세요.

Everything else그 외 실습

Cloud integrations, end-to-end use cases, focused workload experiments and multi-service workshops.Cloud 연동, 엔드투엔드 활용 사례, 집중 워크로드 실험, 다중 서비스 워크숍입니다.

🏠 Local Environments (`local/`)🏠 로컬 환경 (`local/`)

  • local/oss-docker

    ClickHouse OSS on Docker (macOS, Linux); set.sh <version> switches versions and every release lab builds on itDocker 기반 ClickHouse OSS (macOS·Linux). set.sh <버전>으로 버전을 전환하며, 모든 릴리스 랩이 이 환경을 사용

  • local/releases

    22 per-release feature labs, 25.1 → 26.10 — one directory per release, each with runnable SQL for that version's new features. All 22 have been executed against their own server build; the index records which릴리스별 기능 랩 22개, 25.1 → 26.10 — 릴리스마다 디렉토리 하나, 해당 버전 신기능의 실행 가능한 SQL 포함. 22개 모두 해당 서버 빌드에서 실제 실행 검증했으며, 빌드 번호는 인덱스에 표기

  • local/datalake-minio-catalog

    Local data lake: MinIO plus Iceberg / Nessie / Unity / Delta catalogs, with Jupyter notebooks로컬 데이터 레이크: MinIO + Iceberg / Nessie / Unity / Delta 카탈로그, Jupyter 노트북

  • local/iceberg-format-versions

    Iceberg v1, v2 and v3 tables side by side: the same changes on each, the files each version writes (copy-on-write, position deletes, deletion vectors, row lineage, variant), then ClickHouse 26.10 reading themIceberg v1·v2·v3 테이블 비교: 같은 변경을 적용하고 버전마다 쓰는 파일(copy-on-write, position delete, 삭제 벡터, row lineage, variant)을 연 뒤 ClickHouse 26.10으로 읽기

  • local/kafka-mysql-table-engines

    Kafka and MySQL table engines, including materialized-view block-size testingKafka·MySQL 테이블 엔진, 구체화 뷰 블록 크기 테스트 포함

  • local/pg-analytics

    pg_lake + Polaris Iceberg ILM: can pg_clickhouse → ClickHouse read the Iceberg files pg_lake writes, and how it compares with pg_duckdb (TPC-H SF10)pg_lake + Polaris Iceberg ILM: pg_lake가 쓴 Iceberg 파일을 pg_clickhouse → ClickHouse로 읽을 수 있는지, pg_duckdb와 성능 비교 (TPC-H SF10)

  • local/mcp-server-clickhouse

    ClickHouse MCP server for LLM tool accessLLM 도구 접근용 ClickHouse MCP 서버

  • local/llm-mac-librechat-with-clickhouse

    LibreChat with a local LLM and the ClickHouse MCP server (macOS)로컬 LLM + ClickHouse MCP 서버와 LibreChat (macOS)

  • local/llm-linux-librechat-sole

    LibreChat standalone (Linux)LibreChat 단독 구성 (Linux)

☁️ ClickHouse Cloud (`chc/`)☁️ ClickHouse Cloud (`chc/`)

  • chc/api/chc-api-test

    ClickHouse Cloud API testerClickHouse Cloud API 테스터

  • chc/clickpipes-mysql

    ClickPipes CDC from a MySQL sourceMySQL 소스 ClickPipes CDC

  • chc/clickpipes-s3

    ClickPipes S3 checkpoint test suite (Terraform)ClickPipes S3 체크포인트 테스트 (Terraform)

  • chc/cloud-to-oss-peerdb

    PeerDB CDC from RDS MySQL and DocumentDB into ClickHouse OSS, plus a Cloud→self-managed security runbookPeerDB로 RDS MySQL·DocumentDB를 ClickHouse OSS로 CDC 이관 + Cloud→자체 관리 보안 런북

  • chc/mysql-interface

    Automated tests for the Cloud MySQL interfaceCloud MySQL 인터페이스 자동 테스트

  • chc/open-source-consoles

    Open-source ClickHouse UIs (CH-UI, chmonitor, CH-Ops, CloudBeaver, LibreDB Studio) on SharedMergeTree: what works, running queries flipping between replicas, tool accounts오픈소스 ClickHouse UI(CH-UI, chmonitor, CH-Ops, CloudBeaver, LibreDB Studio)를 SharedMergeTree에서: 되는 것, replica를 오가는 실행 중 쿼리, 도구용 계정

  • chc/shared-catalog

    Shared Catalog DDL on Cloud: lifecycle from the catalog's log, propagation between replicas, concurrent DDL, catalog size, idle warehouse services; OSS Keeper trees for comparisonCloud Shared Catalog DDL: 카탈로그 로그로 본 생명주기, 레플리카 간 전파, 동시 DDL, 카탈로그 크기, idle warehouse 서비스, 비교용 OSS Keeper 트리

  • chc/sharedmergetree-internals

    SharedMergeTree measured: what one INSERT writes to object storage and Keeper, merges run once, cross-replica visibility lag, small vs async INSERTs, porting OSS DDLSharedMergeTree 실측: INSERT 하나가 오브젝트 스토리지·Keeper에 쓰는 것, 한 번만 도는 병합, 레플리카 간 가시성 지연, 작은 INSERT vs async INSERT, OSS DDL 이전

  • chc/system-tables

    Cloud system tables in depth: per-replica tables, log history of replaced replicas, clusterAllReplicas + merge(), KILL QUERY ON CLUSTERCloud system 테이블 깊이 보기: 레플리카별 테이블, 교체된 레플리카의 로그 이력, clusterAllReplicas + merge(), KILL QUERY ON CLUSTER

  • chc/tool/costkeeper

    Service cost monitoring서비스 비용 모니터링

  • chc/tool/costkeeper-multi

    Cost monitoring across multiple services다중 서비스 비용 모니터링

🧪 Use Cases (`usecase/`)🧪 활용 사례 (`usecase/`)

  • usecase/ads-analytics

    Ad performance analytics cube광고 성과 분석 큐브

  • usecase/customer360

    Customer 360 modellingCustomer 360 모델링

  • usecase/device-360

    Device360 PoC: Cloud performance validation at billions of rowsDevice360 PoC: 수십억 행 규모 Cloud 성능 검증

  • usecase/fulltext-search

    Bilingual (ko/en) full-text search over support tickets한/영 이중 언어 지원 티켓 전문 검색

  • usecase/file-index-mcp

    A file tree indexed into ClickHouse and queried read-only by an AI through mcp-clickhouse: view SQL security, delete detection, readonly limits, MCP timeout and concurrency, prompts with and without query rules (OSS 26.10, synthetic tree)파일 트리를 ClickHouse에 색인하고 AI가 mcp-clickhouse로 읽기 전용 조회: 뷰 SQL security, 삭제 감지, readonly 상한, MCP 시간 제한·동시 실행, 질의 규칙 유무에 따른 프롬프트 결과 (OSS 26.10, 합성 트리)

  • usecase/korean-rag-tokenizers

    Korean keyword search for RAG: text-index tokenizers, a Kiwi morpheme column, hybrid retrieval (OSS 26.9)한국어 RAG 키워드 검색: text index 토크나이저, Kiwi 형태소 컬럼, 하이브리드 검색 (OSS 26.9)

  • usecase/langfuse-decryption-audit

    Who decrypted which Langfuse field, when and why: OpenBao Transit with per-user JWT login, a decryption service that requires a reason, an insert-only ClickHouse audit table reconciled with OpenBao's audit file (open-source stack; OSS 26.8)Langfuse 필드를 누가, 언제, 왜 복호화했는지: 사용자 JWT로 로그인하는 OpenBao Transit, 사유를 요구하는 복호화 서비스, OpenBao 감사 파일과 대조하는 추가 전용 ClickHouse 감사 테이블 (오픈소스 구성, OSS 26.8)

  • usecase/langfuse-prompt-encryption-perf

    What encrypting Langfuse prompts in ClickHouse costs: SQL encrypt(), executable UDFs with an envelope key or a KMS call per batch/value, the AES_256_GCM_SIV codec and an encrypting ingestion callback, measured on writes, reads, storage and a real Langfuse (OSS 26.8, OpenBao)Langfuse prompt를 ClickHouse에서 암호화하는 비용: SQL encrypt(), envelope 키 또는 묶음·값마다 KMS를 부르는 executable UDF, AES_256_GCM_SIV 코덱, 암호화하는 수집 callback을 쓰기·읽기·저장·실제 Langfuse에서 측정 (OSS 26.8, OpenBao)

  • usecase/langfuse-on-clickhouse

    Langfuse's ClickHouse tables without Langfuse: a v4 snapshot and the langfuse-hols trace, analytics and score SQL (OSS 26.8)Langfuse 없이 보는 Langfuse의 ClickHouse 테이블: v4 스냅샷과 langfuse-hols의 trace, 분석, 점수 SQL (OSS 26.8)

  • usecase/ch-geo-analytics

    Geospatial analytics with H3 indexingH3 인덱싱 기반 공간 분석

  • usecase/korea-geo

    Korean administrative boundaries with Superset한국 행정경계(시군구) + Superset

  • usecase/gnome-variants

    Genome variant analysis유전체 변이 분석

  • usecase/security-traffic-analysis

    Security traffic analysis platform보안 트래픽 분석 플랫폼

  • usecase/json-explode-confluent-clickpipes

    Real-time JSON explode: Confluent → ClickPipes → ClickHouse실시간 JSON explode: Confluent → ClickPipes → ClickHouse

  • usecase/mysql-prewhere

    PREWHERE behaviour over the MySQL protocolMySQL 프로토콜에서의 PREWHERE 동작

  • usecase/mysql-protocol-benchmark

    MySQL vs ClickHouse point-query performanceMySQL vs ClickHouse 포인트 쿼리 성능

  • usecase/timeseries-promql-oss

    TimeSeries table engine + querying it with PromQL (OSS 26.8; Cloud is Private Preview only — no Cloud lab yet)TimeSeries 테이블 엔진 + PromQL로 조회하기 (OSS 26.8; Cloud는 Private Preview 전용 — Cloud 실습은 아직 없음)

  • usecase/oss-network-quality-lake

    Case study: a telco OSS data lake — industry trend, reference architecture, use cases, features verified in a PoC and lessons, over a running ClickHouse lake (OSS 26.9; en/ko/ja/zh)사례 연구: 통신사 OSS 데이터 레이크 — 업계 흐름, 참조 아키텍처, 유즈케이스, PoC에서 검증한 기능과 교훈, 실제로 도는 ClickHouse 레이크 (OSS 26.9; en/ko/ja/zh)

🔬 Workloads (`workload/`)🔬 워크로드 (`workload/`)

  • workload/replacingmergetree

    FINAL, merge timing and the argMax alternativeFINAL, 머지 시점, argMax 대안

  • workload/final-across-versions

    The same SELECT … FINAL SQL on six ClickHouse versions: correctness per engine, partitions, PREWHERE, skip indexes, JOIN, read cost at 20M rows같은 SELECT … FINAL SQL을 ClickHouse 여섯 버전에서 실행: 엔진별 정확성, 파티션, PREWHERE, skip index, JOIN, 2,000만 행 읽기 비용

  • workload/dedup-engine

    Deduplication engines compared중복 제거 엔진 비교

  • workload/delete-benchmark

    DELETE mechanisms and their costsDELETE 메커니즘과 비용

  • workload/upsert-across-versions

    The same upsert, UPDATE and DELETE SQL on six ClickHouse versions: what each way of changing rows writes, how soon it shows, what it costs later reads같은 upsert·UPDATE·DELETE SQL을 ClickHouse 여섯 버전에서 실행: 행을 바꾸는 방법별 쓰기량, 반영 시점, 이후 읽기 비용

  • workload/mv-vs-rmv

    Materialized vs refreshable materialized viewsMV vs RMV(갱신 구체화 뷰)

  • workload/replacingmergetree-mv

    Aggregating MVs over ReplacingMergeTree on 26.8 and 26.10: what the target double-counts (updates, late versions, regrouping, deletes, retries), seven designs that avoid it, their cost at 16M rows, and merge headroom26.8 · 26.10에서 ReplacingMergeTree 위 집계 MV: 대상이 이중으로 세는 경우(정정, 늦은 버전, 그룹 변경, 삭제, 재시도), 이를 피하는 설계 일곱 가지, 1,600만 행 비용, 병합 여유

  • workload/snapshot-diff

    New, changed and deleted records between hourly full snapshots on ClickHouse Cloud: snapshot_id boundary, tuple hash, JOIN diff, a refreshable MV with a completeness guard, APPEND INCREMENTAL and an insert-time MV compared, TTL, cost at 1M and 10M recordsClickHouse Cloud에서 매시간 오는 전체 스냅샷 사이의 신규 · 변경 · 삭제 레코드: snapshot_id 경계, tuple 해시, JOIN 비교, 완료 가드가 있는 refreshable MV, APPEND INCREMENTAL · INSERT 시점 MV 비교, TTL, 100만 · 1,000만 레코드 비용

  • workload/resharding

    Resharding a self-managed cluster from 2 to 3 shards on Keeper + 6 servers (26.8): new shard + weights, INSERT … SELECT from remote(), partition FETCH / ATTACH / DROP; rows per shard, timings, reads and writes during the move, per-partition checks, a source replica killed mid-copyKeeper + 서버 6대(26.8)에서 자체 운영 클러스터를 2샤드에서 3샤드로: 새 샤드 + 가중치, remote()로 INSERT … SELECT, 파티션 FETCH / ATTACH / DROP. 샤드별 행 수, 시간, 이동 중 읽기 · 쓰기, 파티션별 검증, 복사 중 원본 레플리카 종료

  • workload/mv-uniq-state-size

    Distinct-count state size in 1-minute and cascading 10-minute rollups: uniq · uniqCombined · uniqHLL12 · uniqExact bytes, error and Top/Bottom-N time1분 롤업과 cascading 10분 롤업에서 고유 수 상태의 크기: uniq · uniqCombined · uniqHLL12 · uniqExact의 바이트, 오차, Top/Bottom N 시간

  • workload/projection

    Projections for read patterns one sort key cannot serve단일 정렬 키로 커버되지 않는 읽기 패턴용 프로젝션

  • workload/projection-customsettings

    Projection behaviour under custom settings커스텀 설정에서의 프로젝션 동작

  • workload/index-granularity-point-query

    Index granularity versus point-query latency인덱스 granularity와 포인트 쿼리 지연

  • workload/index-across-versions

    The same index SQL on six ClickHouse versions: primary-key prefix pruning, each skip index type, the text index, automatic minmax indices, the query condition cache, granules read같은 인덱스 SQL을 ClickHouse 여섯 버전에서 실행: 기본 키 접두사 가지치기, skip index 종류별 동작, text 인덱스, 자동 minmax 인덱스, query condition cache, 읽은 granule

  • workload/async-insert-stress

    Async insert under stress비동기 삽입 스트레스 테스트

  • workload/json-stress-test

    JSON type path limits: dynamic vs shared path costJSON 타입 경로 한계: dynamic vs shared path 비용

  • workload/kafka-partitioning-ingestion

    Kafka partitioning aligned to the ClickHouse sort keyKafka 파티셔닝과 ClickHouse 정렬 키 정합

  • workload/rbac-workloadmanagement

    RBAC and workload managementRBAC 및 워크로드 관리

  • workload/join-across-versions

    The same JOIN SQL on six ClickHouse versions: algorithm, memory, syntax and errors per version같은 JOIN SQL을 ClickHouse 여섯 버전에서 실행: 버전별 알고리즘, 메모리, 문법, 오류

Getting started시작하기

git clone https://github.com/litkhai/clickhouse-hols.git
cd clickhouse-hols/local/releases/26.10
./00-setup.sh

Then run the numbered scripts in order. Every lab documents its own setup and teardown; nothing is global.이후 번호 순서대로 스크립트를 실행하세요. 각 랩이 자체 설정과 정리 방법을 문서화하며, 전역 설정은 없습니다.