<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/pipelined-sql-in-clickhouse-26-8-dvtuimznh" -->

---
title: Pipelined SQL in ClickHouse 26.8 | daily.dev
description: ClickHouse 26.8 introduces pipelined SQL using a new |> operator that lets queries be written as a sequence of transformations rather than the traditional...
canonical: https://daily.dev/posts/pipelined-sql-in-clickhouse-26-8-dvtuimznh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Pipelined SQL in ClickHouse 26.8 | daily.dev
og:description: ClickHouse 26.8 introduces pipelined SQL using a new |> operator that lets queries be written as a sequence of transformations rather than the traditional...
og:url: https://daily.dev/posts/pipelined-sql-in-clickhouse-26-8-dvtuimznh
og:image: https://api.daily.dev/og/posts/DVtUiMznh.png
og:image:alt: Pipelined SQL in ClickHouse 26.8
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Pipelined SQL in ClickHouse 26.8

**[ClickHouse](https://daily.dev/sources/clickhouse)** · 8 min read · 2 upvotes · 0 comments

## Summary

ClickHouse 26.8 introduces pipelined SQL using a new |> operator that lets queries be written as a sequence of transformations rather than the traditional column-first SQL structure. The post compares conventional, FROM-first, and pipelined query styles using the UK property prices dataset, then demonstrates EXTEND for adding calculated columns, reusing intermediate aggregation results without nested subqueries or CTEs, how stage ordering affects results, and how pipelines can be used in views, subqueries, and INSERT...SELECT statements. EXPLAIN SYNTAX reveals that pipelined queries are translated into standard nested SELECT statements before execution and optimized as a whole.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://clickhouse.com/blog/pipelined-sql-26.8>

## Questions this post answers

### What is the new pipe operator syntax in ClickHouse 26.8?

ClickHouse 26.8 introduces a |> pipe operator that lets you chain query stages like FROM, WHERE, AGGREGATE, EXTEND, ORDER BY, and LIMIT in processing order, similar to a pipeline. Each stage after |> is a complete, valid query on its own, and the whole pipeline is converted into standard nested SQL before execution.

_Developers adopting new ClickHouse query syntax can keep track of release changes like this on daily.dev._

### How do I add a calculated column without losing existing columns in a ClickHouse query?

Use the EXTEND clause in ClickHouse's pipelined SQL syntax, which adds a new calculated column while retaining every column already present in the pipeline. For example, |> EXTEND round(price / 1000000, 2) AS price_millions behaves like SELECT *, round(price / 1000000, 2) AS price_millions but fits into the pipe-based query flow.

_daily.dev helps developers building ClickHouse queries stay current with syntax like EXTEND._

### Does the order of stages matter in ClickHouse pipelined SQL queries?

Yes, stage order changes results because each |> stage operates on the output of the previous one. Placing LIMIT 10 before a second AGGREGATE stage restricts the aggregation to only those ten intermediate rows rather than the full dataset, producing different results than putting LIMIT after the aggregation, and without a preceding ORDER BY the selected rows are non-deterministic.

_Engineers debugging multi-stage SQL logic can reference nuances like this via daily.dev._

## Similar posts on daily.dev

- [ClickHouse release 26.10](https://daily.dev/posts/clickhouse-release-26-10-bz5e15ytp) · ClickHouse · 1 upvotes · 0 comments
- [ClickHouse Release 26.7](https://daily.dev/posts/clickhouse-release-26-7-8dsprk7ep) · ClickHouse · 3 upvotes · 0 comments
- [Query Pipelining in node-postgres: 2-3x More Throughput](https://daily.dev/posts/query-pipelining-in-node-postgres-2-3x-more-throughput-qhf46mieb) · Platformatic · 0 upvotes · 0 comments
- [SQL Improvements in PostgreSQL 11–18: A Personal Selection](https://daily.dev/posts/sql-improvements-in-postgresql-11-18-a-personal-selection-hujlsgrj1) · Planet PostgreSQL · 0 upvotes · 0 comments

---

Tags: [#sql](https://daily.dev/tags/sql), [#clickhouse](https://daily.dev/tags/clickhouse)

[View this post on daily.dev](https://daily.dev/posts/pipelined-sql-in-clickhouse-26-8-dvtuimznh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Pipelined SQL in ClickHouse 26.8","url":"https://daily.dev/posts/pipelined-sql-in-clickhouse-26-8-dvtuimznh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/pipelined-sql-in-clickhouse-26-8-dvtuimznh"},"datePublished":"2026-09-04T12:18:06.485Z","dateModified":"2026-09-13T18:46:37.148Z","description":"ClickHouse 26.8 introduces pipelined SQL using a new |\u003e operator that lets queries be written as a sequence of transformations rather than the traditional...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e43ec9551cce5c21dcdccbd0f4942ea2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e43ec9551cce5c21dcdccbd0f4942ea2?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"ClickHouse","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ClickHouse","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/clickhouse","url":"https://daily.dev/sources/clickhouse"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/pipelined-sql-in-clickhouse-26-8-dvtuimznh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"sql,clickhouse","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ClickHouse","item":"https://daily.dev/sources/clickhouse"},{"@type":"ListItem","position":3,"name":"Pipelined SQL in ClickHouse 26.8"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/pipelined-sql-in-clickhouse-26-8-dvtuimznh#faq","mainEntity":[{"@type":"Question","name":"What is the new pipe operator syntax in ClickHouse 26.8?","acceptedAnswer":{"@type":"Answer","text":"ClickHouse 26.8 introduces a |\u003e pipe operator that lets you chain query stages like FROM, WHERE, AGGREGATE, EXTEND, ORDER BY, and LIMIT in processing order, similar to a pipeline. Each stage after |\u003e is a complete, valid query on its own, and the whole pipeline is converted into standard nested SQL before execution. Developers adopting new ClickHouse query syntax can keep track of release changes like this on daily.dev."}},{"@type":"Question","name":"How do I add a calculated column without losing existing columns in a ClickHouse query?","acceptedAnswer":{"@type":"Answer","text":"Use the EXTEND clause in ClickHouse's pipelined SQL syntax, which adds a new calculated column while retaining every column already present in the pipeline. For example, |\u003e EXTEND round(price / 1000000, 2) AS price_millions behaves like SELECT *, round(price / 1000000, 2) AS price_millions but fits into the pipe-based query flow. daily.dev helps developers building ClickHouse queries stay current with syntax like EXTEND."}},{"@type":"Question","name":"Does the order of stages matter in ClickHouse pipelined SQL queries?","acceptedAnswer":{"@type":"Answer","text":"Yes, stage order changes results because each |\u003e stage operates on the output of the previous one. Placing LIMIT 10 before a second AGGREGATE stage restricts the aggregation to only those ten intermediate rows rather than the full dataset, producing different results than putting LIMIT after the aggregation, and without a preceding ORDER BY the selected rows are non-deterministic. Engineers debugging multi-stage SQL logic can reference nuances like this via daily.dev."}}]}
```

