diff --git a/docs/docs/configuration/databases.mdx b/docs/docs/configuration/databases.mdx index 911cd11da..2b23c464d 100644 --- a/docs/docs/configuration/databases.mdx +++ b/docs/docs/configuration/databases.mdx @@ -1035,6 +1035,11 @@ The expected connection string using username and password is formatted as follo pinot://:@:/query/sql?controller=http://:/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 diff --git a/pyproject.toml b/pyproject.toml index efb211c0d..26b020f98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -151,7 +151,7 @@ ocient = [ "geojson", ] oracle = ["cx-Oracle>8.0.0, <8.1"] -pinot = ["pinotdb>=0.3.3, <0.4"] +pinot = ["pinotdb>=5.0.0, <6.0.0"] playwright = ["playwright>=1.37.0, <2"] postgres = ["psycopg2-binary==2.9.6"] presto = ["pyhive[presto]>=0.6.5"] diff --git a/superset/db_engine_specs/pinot.py b/superset/db_engine_specs/pinot.py index 0f53cfa77..faf919f10 100644 --- a/superset/db_engine_specs/pinot.py +++ b/superset/db_engine_specs/pinot.py @@ -25,10 +25,6 @@ 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 # https://docs.pinot.apache.org/users/user-guide-query/supported-transformations#datetime-functions _time_grain_expressions = {