mirror of
https://github.com/apache/superset.git
synced 2026-04-11 12:26:05 +00:00
38 lines
786 B
Plaintext
38 lines
786 B
Plaintext
---
|
||
title: Presto
|
||
hide_title: true
|
||
sidebar_position: 28
|
||
version: 1
|
||
---
|
||
|
||
## Presto
|
||
|
||
The [pyhive](https://pypi.org/project/PyHive/) library is the recommended way to connect to Presto through SQLAlchemy.
|
||
|
||
The expected connection string is formatted as follows:
|
||
|
||
```
|
||
presto://{hostname}:{port}/{database}
|
||
```
|
||
|
||
You can pass in a username and password as well:
|
||
|
||
```
|
||
presto://{username}:{password}@{hostname}:{port}/{database}
|
||
```
|
||
|
||
Here is an example connection string with values:
|
||
|
||
```
|
||
presto://datascientist:securepassword@presto.example.com:8080/hive
|
||
```
|
||
|
||
By default Superset assumes the most recent version of Presto is being used when querying the
|
||
datasource. If you’re using an older version of Presto, you can configure it in the extra parameter:
|
||
|
||
```
|
||
{
|
||
"version": "0.123"
|
||
}
|
||
```
|