a34729t opened a new issue, #20264:
URL: https://github.com/apache/pinot/issues/20264
My goal is to support alternative query optimizers, and enable writing the
optimizers as plugins via the existing `pinot-query-planner-spi`. Currently the
HEP logical planner is used; it would be nice to try using Calcite's
`VolcanoPlanner` (ie Cascades style) that we can not only ship as a plugin, but
also enable per query.
## MVP
In the initial version, statistics would be supplied through query options
only, like so:
```
SET queryOptimizer = 'cbo';
SET tableStats = '{"table_OFFLINE": {"rowCount": 10000, "columns": {"col":
{"cardinality": 100}}}}';
```
The exact arrangement of the statistics can be arbitrary based on the
optimizer implementation.
Also, to keep the diff small, we can copy the rules (and rel-node knowledge)
into the plugin to decouple it from the rest of the code.
## Future
* ZK integration and a minion task for collecting table statistics
* Move rel nodes and rules into a shared Calcite module (e.g
pinot-query-planner-spi, or a new module) that both the core and plugins depend
on
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]