A SQLAlchemy dialect for Dremio via the Flight interface.
Project description
SQLAlchemy Dremio
Fork of narendrans/sqlalchemy_dremio with unreleased changes.
A SQLAlchemy dialect for Dremio via ODBC and Flight interfaces.
Installation
From pip:
pip install serraict-sqlalchemy-dremio
To install from source:
python setup.py install
Usage
Connection String example:
Dremio Software:
dremio+flight://user:password@host:port/dremio
Dremio Cloud:
dremio+flight://data.dremio.cloud:443/?Token=<TOKEN>UseEncryption=true&disableCertificateVerification=true
Options:
Schema - (Optional) The schema to use
TLS:
UseEncryption=true|false - (Optional) Enables TLS connection. Must be enabled on Dremio to use it. DisableCertificateVerification=true|false - (Optional) Disables certificate verification.
WLM:
routing_queue - (Optional) The queue in which queries should run routing_tag - (Optional) Routing tag to use. routing_engine - (Optional) The engine in which the queries should run
Testing
You can run the integration tests with the Dremio community edition Docker image.
docker run -d -p 9047:9047 -p 31010:31010 -p 32010:32010 --name dremio dremio/dremio-oss:latest
export DREMIO_CONNECTION_URL="dremio+flight://dremio:dremio123@localhost:32010/dremio?UseEncryption=false"
pytest
The workflow in .github/workflows/dremio.yml demonstrates how to run these tests automatically on GitHub Actions.
The CI badge at the top of this file shows the current test status.
Superset Integration
The ODBC connection to superset is now deprecated. Please update sqlalchemy_dremio to 3.0.2 to use the flight connection.
Release Notes
3.0.4
- Addressing issue #34 and #37: Add driver name to dialects
3.0.3
- Add back missing routing_engine property.
3.0.2
- Add implementations of has_table and get_view_names.
3.0.1
- Made connection string property keys case-insensitive
- Fix incorrect lookup of the token property
- Fix incorrect lookup of the DisableCertificateVerification property
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file serraict_sqlalchemy_dremio-3.0.6.tar.gz.
File metadata
- Download URL: serraict_sqlalchemy_dremio-3.0.6.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a74bd4416b59c1a5c5b44b295bf0bb935c02542e903d1afce96c25a87ae929d
|
|
| MD5 |
e91a3cb3a6ff4e61fae5bc82b53c0fdd
|
|
| BLAKE2b-256 |
623820125de260c525da0d9cf6e89b07f4e81eb9a2124bcd0f559a38591ee78a
|
Provenance
The following attestation bundles were made for serraict_sqlalchemy_dremio-3.0.6.tar.gz:
Publisher:
publish.yml on serraict/sqlalchemy_dremio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
serraict_sqlalchemy_dremio-3.0.6.tar.gz -
Subject digest:
5a74bd4416b59c1a5c5b44b295bf0bb935c02542e903d1afce96c25a87ae929d - Sigstore transparency entry: 701103147
- Sigstore integration time:
-
Permalink:
serraict/sqlalchemy_dremio@9bb9ed07dc8630e431b8a17336e7d7430862f68a -
Branch / Tag:
refs/tags/v3.0.6 - Owner: https://github.com/serraict
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9bb9ed07dc8630e431b8a17336e7d7430862f68a -
Trigger Event:
push
-
Statement type:
File details
Details for the file serraict_sqlalchemy_dremio-3.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: serraict_sqlalchemy_dremio-3.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
055d3a5c4e339d7c0fa310c145716abd8432e0eb0073ffd957c5134d882141d3
|
|
| MD5 |
b431021668c9544d42aca917d4e8f759
|
|
| BLAKE2b-256 |
ebb2a113068e8c0919b8afe526c07137da29729820aa6b89d675a67f87a81fb8
|
Provenance
The following attestation bundles were made for serraict_sqlalchemy_dremio-3.0.6-py2.py3-none-any.whl:
Publisher:
publish.yml on serraict/sqlalchemy_dremio
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
serraict_sqlalchemy_dremio-3.0.6-py2.py3-none-any.whl -
Subject digest:
055d3a5c4e339d7c0fa310c145716abd8432e0eb0073ffd957c5134d882141d3 - Sigstore transparency entry: 701103150
- Sigstore integration time:
-
Permalink:
serraict/sqlalchemy_dremio@9bb9ed07dc8630e431b8a17336e7d7430862f68a -
Branch / Tag:
refs/tags/v3.0.6 - Owner: https://github.com/serraict
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9bb9ed07dc8630e431b8a17336e7d7430862f68a -
Trigger Event:
push
-
Statement type: