https://github.com/akhenakh/duckdb-superset
Duckdb for Apache SuperSet
https://github.com/akhenakh/duckdb-superset
duckdb superset
Last synced: 4 months ago
JSON representation
Duckdb for Apache SuperSet
- Host: GitHub
- URL: https://github.com/akhenakh/duckdb-superset
- Owner: akhenakh
- License: mit
- Created: 2025-01-17T00:49:20.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-17T03:32:37.000Z (9 months ago)
- Last Synced: 2025-02-15T21:47:46.002Z (8 months ago)
- Topics: duckdb, superset
- Language: Dockerfile
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DuckDB supports in SuperSet
## Run Superset
```sh
mkdir data
podman run --rm -p 8088:8088 \
-e "SUPERSET_SECRET_KEY=XXXXX" \
--mount type=bind,source=/$(pwd)/data,target=/data \
--name superset-duckdb \
ghcr.io/akhenakh/duckdb-superset:latest# Upgrade database to latest.
docker exec -it superset-duckdb superset db upgrade# Setup roles.
docker exec -it superset-duckdb superset init
```## Configure Superset for DuckDB
- Go to http://localhost:8088 → Settings → Database Connections.
- Click on Create a new database connection.
- In the dropdown menu, select DuckDB.
- Then click on "Connect this database with SQLAlchemy URI string instead".
- Set the SQLALCHEMY URI to `duckdb:///:memory:` or use a real file path like `duckdb:///superset_home/mydb`.
- In the **Advanced** tab set **Engine Parameters** to `{"connect_args":{"config":{"threads":16}}}`## Spatial Queries
If you want to do spatial queries, first go the SQL Lab and run the following statement: `INSTALL spatial;`Go back to your existing DuckDB database connections, and edit it, in advanced tab set `{"connect_args":{"preload_extensions":["spatial"]}}` in Engine Parameters.
## Build the image
```sh
podman build --no-cache -t ghcr.io/akhenakh/duckdb-superset:latest .
```