✳ CHAPTER 01 / SQL TO GRAPH

From SQL to distributed execution.

A query starts as a few lines of SQL. WCOL turns it into a graph of streaming operators that can run across small, memory-constrained compute nodes.

128MiB
MEMORY PER ISOLATE
02

Explore the plan

HASH AGGREGATE / GROUP BY
READY TO EXPLORE/11 NODES
↖ SELECT ANY NODE TO INSPECT IT HOVER EDGES TO TRACE DATA FLOW
03 / EXECUTION REPLAY01 — 06
01

Plan the query

Compile logical operators into scan, exchange and compute tasks.

PLANNED
THE CONSTRAINTS

Designed around the limits.

These aren't implementation details added afterward. They shape the execution graph.

01 / STREAMS
⇢

Data moves in bounded frames.

WCS frames have a 64 KiB payload cap. Mailboxes and backpressure prevent a slow consumer from forcing unbounded buffering upstream.

02 / PLACEMENT
⫶

One logical graph, many nodes.

The graph describes computation. Placement assigns fragments to execution nodes, while the host handles streams and I/O.

03 / MEMORY
▤

Spill is part of execution.

Hash aggregation flushes sorted runs when the working set grows too large, then merges those runs without keeping every group in memory.