---
title: "Pipelined SQL in ClickHouse 26.8"
description: "ClickHouse 26.8 adds pipelined SQL via a `|>` operator that lets queries be written as a sequence of transformations (FROM, WHERE, AGGREGATE, EXTEND, ORDER BY, LIMIT), building on the FROM-first syntax available since 22.12."
url: "https://swe.quest/articles/pipelined-sql-in-clickhouse-26-8-36877655d79cc45a"
canonical: "https://clickhouse.com/blog/pipelined-sql-26.8"
source: "ClickHouse"
published: "2026-09-04"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["sql","analytics","query-engines"]
---

# Pipelined SQL in ClickHouse 26.8

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-09-04, 7 min read, How-to. Original: [https://clickhouse.com/blog/pipelined-sql-26.8](https://clickhouse.com/blog/pipelined-sql-26.8)

## Summary

ClickHouse 26.8 adds pipelined SQL via a \`|\>\` operator that lets queries be written as a sequence of transformations (FROM, WHERE, AGGREGATE, EXTEND, ORDER BY, LIMIT), building on the FROM-first syntax available since 22.12. Pipelines are rewritten into nested conventional SQL, visible via EXPLAIN SYNTAX, but the whole query is optimized before execution rather than materializing each stage. Worked examples on the UK property prices dataset show re-aggregating aggregation results without CTEs, how stage order changes results (e.g. LIMIT before AGGREGATE), and using pipelines in views and INSERT ... SELECT.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Query engines](https://swe.quest/tags/query-engines.md) (Data & databases)

## Prerequisites

- SQL aggregation and GROUP BY ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- subqueries and CTEs

## Keywords

ClickHouse, pipelined SQL, EXPLAIN SYNTAX, MergeTree

## Related posts

- [ClickHouse Newsletter May 2022: Explain Statement – Query Optimization](https://swe.quest/articles/clickhouse-newsletter-may-2022-explain-statement-query-optimization-a636e0c953208fbf.md): ClickHouse · 2022-05-09 · Medium · 8 min read · Query engines, Analytics & OLAP, Performance engineering, SQL
  ClickHouse's May 2022 newsletter centers on using EXPLAIN for query optimization.
- [ClickHouse Release 23.2](https://swe.quest/articles/clickhouse-release-23-2-04173a433a9c5aa3.md): ClickHouse · 2023-03-09 · Medium · 7 min read · Analytics & OLAP, Query engines, Data pipelines, SQL
  ClickHouse 23.2 ships 18 features, 30 performance optimisations and 43 bug fixes.
- [ClickHouse Release 26.7](https://swe.quest/articles/clickhouse-release-26-7-1ce7ef970afa5876.md): ClickHouse · 2026-08-06 · Medium · 30 min read · Query engines, Analytics & OLAP, Performance engineering, Vector search
  ClickHouse 26.7 ships 61 features, 112 performance optimizations and 329 bug fixes, led by a fused ordered-aggregation pipeline that pushes LIMIT into in-order GROUP BY.
- [ClickHouse Release 26.3](https://swe.quest/articles/clickhouse-release-26-3-ea6c8bff46efb19b.md): ClickHouse · 2026-04-07 · Medium · 15 min read · Analytics & OLAP, Query engines, Storage engines, SQL, WebAssembly
  ClickHouse 26.3 ships 27 features, 40 performance optimizations and 202 bug fixes.
- [ClickHouse Release 25.7](https://swe.quest/articles/clickhouse-release-25-7-3deecef07d4b1ccf.md): ClickHouse · 2025-08-08 · Medium · 13 min read · Analytics & OLAP, Query engines, Storage engines, Performance engineering
  ClickHouse 25.7 adds standard SQL UPDATE and DELETE built on lightweight "patch parts".

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
