Tip
If you already have a Presto instance running, skip the steps to run Presto in a Docker container.
-
Start a Presto instance:
docker run -d --rm --name presto -p 8080:8080 prestodb/presto:latest
-
Install the Presto ADBC driver:
dbc install --pre presto
-
Customize the Python script
main.pyas needed- Change the connection arguments in
db_kwargs- Format
uriaccording to the driver documentation, or keep it as is to use the TPC-H data included in the Presto Docker container image
- Format
- Change the connection arguments in
-
Run the Python script:
uv run main.py
Stop the Docker container running Presto:
docker stop presto