Please enable JavaScript.
Coggle requires JavaScript to display documents.
Presto (Query (Query has stages (A stage has tasks (A task has pipelines…
Presto
Query
Query is a single execution of SQL
Query has stages
A stage executes a query plan fragment
A stage has tasks
All tasks in the stage execute the same plan fragment
Generally there is at most one Task per stage per worker node
A task has pipelines
A pipeline is basically a template for drivers
When the plan fragment in a stage is broken down into operators, we may end up with multiple pipelines
A pipeline has drivers
A driver is an instance of the template in a pipeline.
Typically there is one of these per split
Some pipelines are not created based on splits and only have a single driver instance
A driver has operators
The driver contains a list of operators
The driver “drives” pages of data through the operator chain
Operator do the actual data processing in Presto
Example operators are: table scan, filter, project, aggregate, join, etc
An operator optionally consumes pages and optionally produces output pages