Multi-stage query engine of Pinot supports subquery, join, aliases

This commit is contained in:
Soumitra Kumar 2024-05-06 18:08:19 -07:00
parent 10c78960a7
commit c26d409f16
2 changed files with 9 additions and 4 deletions

View File

@ -1035,6 +1035,11 @@ The expected connection string using username and password is formatted as follo
pinot://<username>:<password>@<pinot-broker-host>:<pinot-broker-port>/query/sql?controller=http://<pinot-controller-host>:<pinot-controller-port>/verify_ssl=true``
```
If you want to use explore view or joins, window functions, etc. then enable [multi-stage query engine](https://docs.pinot.apache.org/reference/multi-stage-engine).
Add below argument while creating database connection in Advanced -> Other -> ENGINE PARAMETERS
```
{"connect_args":{"use_multistage_engine":"true"}}
```
#### Postgres

View File

@ -25,10 +25,10 @@ from superset.db_engine_specs.base import BaseEngineSpec
class PinotEngineSpec(BaseEngineSpec):
engine = "pinot"
engine_name = "Apache Pinot"
allows_subqueries = False
allows_joins = False
allows_alias_in_select = False
allows_alias_in_orderby = False
allows_subqueries = True
allows_joins = True
allows_alias_in_select = True
allows_alias_in_orderby = True
# https://docs.pinot.apache.org/users/user-guide-query/supported-transformations#datetime-functions
_time_grain_expressions = {