ELSEIF
Your brief EB
387 stories from 200 feeds 1260 clusters Refreshed 27 minutes ago next pull 13:05

DATABASES Signal 149

Pipelined SQL in ClickHouse 26.8

ClickHouse 26.8 introduces a |> operator that allows developers to write SQL queries as a sequential pipeline of transformations, which the engine translates into optimized nested subqueries before execution.

WHY IT MATTERS

This syntax makes complex queries easier to build and inspect incrementally, replacing nested subqueries or CTEs with a top-down flow. Since ClickHouse optimizes the translated query as a whole, there is no performance penalty from the intermediate stages. It is currently limited to ClickHouse and requires version 26.8 or later.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

ClickHouse 26.8 introduces a |> operator to chain SQL transformations like filtering, aggregating, and sorting in a readable sequence.

02

The EXTEND keyword adds calculated columns to the pipeline while retaining all existing columns from the previous stage.

03

Pipelined queries are converted into standard nested SQL before execution and optimized as a single unit without materializing intermediate results.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
ClickHouse Pipelined SQL in ClickHouse 26.8 Open ↗