forked from pinot-contrib/pinot-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3111a2
commit 05afa4b
Showing
5 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# V2 Multi-Stage Query Engine | ||
|
||
## Overview | ||
|
||
The new multi-stage query engine (a.k.a V2 query engine) is designed to support more complex SQL semantics such as `JOIN`, `OVER` window, `MATCH_RECOGNIZE` and eventually, make Pinot support closer to full ANSI SQL semantics.  | ||
|
||
![](https://www.datocms-assets.com/75153/1661707313-query-execution-model.png)-->![](https://www.datocms-assets.com/75153/1661533401-screenshot\_1.png) | ||
|
||
It also resolves the bottleneck effect for the broker reduce stage where only a single machine is dedicated to perform heavy lifting such as high cardinality `GROUP BY` result merging; `ORDER BY` sorting, etc. | ||
|
||
## How to use the V2 query engine | ||
|
||
To enable the V2 engine,  | ||
|
||
1. please make sure to either  | ||
* [Building Apache Pinot](https://github.com/apache/pinot#building-pinot) using the latest master commit. | ||
* Download the latest Apache Pinot docker image using the [official guide](https://docs.pinot.apache.org/basics/getting-started/running-pinot-in-docker). | ||
2. Please add the following configurations to your cluster config: | ||
* ``` | ||
"pinot.multistage.engine.enabled": "true", | ||
"pinot.server.instance.currentDataTableVersion": "4", | ||
"pinot.query.server.port": "8421", | ||
"pinot.query.runner.port": "8442" | ||
``` | ||
3. Start the cluster normally, you should see the following window in the controller query page: | ||
* <img src="../../.gitbook/assets/image (51).png" alt="" data-size="original"> | ||
## Design Details | ||
The overall PEP design doc and discussion can be found in the following links | ||
* [PEP discussion Github Issue](https://github.com/apache/pinot/issues/8260) and | ||
* [PEP design doc](https://docs.google.com/document/d/10-vL\_bUrI-Pi2oYudWyUlQl9Kf0cLrW-Z8hGczkCPik/edit) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters