fix: Enable explore button on SQL Lab view when connected to Apache Pinot as a database (#28364)
This commit is contained in:
parent
4e861cf86e
commit
6d2b3b8698
|
|
@ -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``
|
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
|
#### Postgres
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@ ocient = [
|
||||||
"geojson",
|
"geojson",
|
||||||
]
|
]
|
||||||
oracle = ["cx-Oracle>8.0.0, <8.1"]
|
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"]
|
playwright = ["playwright>=1.37.0, <2"]
|
||||||
postgres = ["psycopg2-binary==2.9.6"]
|
postgres = ["psycopg2-binary==2.9.6"]
|
||||||
presto = ["pyhive[presto]>=0.6.5"]
|
presto = ["pyhive[presto]>=0.6.5"]
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,6 @@ from superset.db_engine_specs.base import BaseEngineSpec
|
||||||
class PinotEngineSpec(BaseEngineSpec):
|
class PinotEngineSpec(BaseEngineSpec):
|
||||||
engine = "pinot"
|
engine = "pinot"
|
||||||
engine_name = "Apache 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
|
# https://docs.pinot.apache.org/users/user-guide-query/supported-transformations#datetime-functions
|
||||||
_time_grain_expressions = {
|
_time_grain_expressions = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue