SQLAlchemy Dremio is a SQLAlchemy dialect that enables connecting to Dremio via its Apache Arrow Flight interface. It's actively maintained, with the current stable version being 3.0.5, and generally follows a release cadence tied to Dremio Flight client updates and SQLAlchemy compatibility.
pip install sqlalchemy-dremioNo compatibility data collected yet for this library.
This quickstart demonstrates how to establish a connection to Dremio using `sqlalchemy-dremio` via the Flight interface and execute a basic query. It uses environment variables for secure credential handling and highlights common connection string parameters like host, port, user, password, catalog, and SSL settings.
Update your connection string from `dremio://...` to `dremio+flight://...` and ensure `dremio-flight-client` is installed.
Add `?USE_SSL=true` to your connection string if connecting to a Dremio instance that uses SSL (which is common). Example: `dremio+flight://user:pass@host:32010/DREMIO?USE_SSL=true`.
Ensure your connection string includes a valid Dremio catalog/space name, e.g., `dremio+flight://user:pass@host:32010/DREMIO` or `dremio+flight://user:pass@host:32010/MySpace`.
Verify the correct Dremio Flight port for your installation, which is typically 32010. Update your connection string accordingly: `...:32010/...`.
Run `pip install sqlalchemy-dremio` to install the dialect.
Run `pip install dremio-flight-client` or simply `pip install sqlalchemy-dremio` (which should pull it as a dependency).
Verify that Dremio is running, the Flight endpoint is enabled, the host and port (commonly 32010) are correct, and network firewalls allow the connection. Also, check if `USE_SSL=true` is needed in the connection string.
Double-check the username and password in your connection string or environment variables. Ensure the user has permissions to access Dremio via Flight.
Ensure the catalog specified in the connection string (e.g., `/DREMIO`) is correct. Also, verify the table/schema name in your query and ensure it's fully qualified if necessary (e.g., `"Dremio"."myspace"."mytable"`).