Skip to main content

A SQLAlchemy dialect for Dremio via the Flight interface.

Reason this release was yanked:

This version used a sqlalchemy version that is uncomaptible with Superset.

Project description

SQLAlchemy Dremio

Fork of narendrans/sqlalchemy_dremio with unreleased changes.

PyPI CI License Python

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:

https://docs.dremio.com/software/advanced-administration/workload-management/#query-tagging--direct-routing-configuration

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

serraict_sqlalchemy_dremio-3.0.5.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

serraict_sqlalchemy_dremio-3.0.5-py2.py3-none-any.whl (19.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file serraict_sqlalchemy_dremio-3.0.5.tar.gz.

File metadata

File hashes

Hashes for serraict_sqlalchemy_dremio-3.0.5.tar.gz
Algorithm Hash digest
SHA256 e19c20864cd0ae73dcd92117c3f5650818093691c3c1d406208e5f6d66727f5f
MD5 93374ff8402ec8a821a49bb76523b888
BLAKE2b-256 15be2b2ac67a83c511ec7c92a080c1a3accd099d1dbc185c1ff0f6a386b967fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for serraict_sqlalchemy_dremio-3.0.5.tar.gz:

Publisher: publish.yml on serraict/sqlalchemy_dremio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file serraict_sqlalchemy_dremio-3.0.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for serraict_sqlalchemy_dremio-3.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 942737fe7e8bd8da6cbbeb732cd6c6e7e28957cc5be6dab122ed90a1488e9502
MD5 58f0a2a9994d0b2ae48e755e6049a8d3
BLAKE2b-256 2189b0df06a9b9171e8d61214d5f57886f190fa46639bd44a7861e31faa9ed81

See more details on using hashes here.

Provenance

The following attestation bundles were made for serraict_sqlalchemy_dremio-3.0.5-py2.py3-none-any.whl:

Publisher: publish.yml on serraict/sqlalchemy_dremio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page