villebro / sqlalchemy_dremio

SQLAlchemy for Dremio via the ODBC and Flight interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLAlchemy Dremio

PyPI Build

A SQLAlchemy dialect for Dremio via ODBC and Flight interfaces.

Installation

pip install sqlalchemy_dremio

Pre-Requisites

Mac OS X:

CentOS/RHEL:

Debian:

Usage

ODBC

Connection String example: dremio://user:password@host:port/dremio;SSL=0

You can specify other ODBC parameters seperated by semi colon.

Arrow Flight

- This is experiemental. Not recommended for production usage.

Connection String example: dremio+flight://user:password@host:port/dremio

Refer https://github.com/dremio-hub/dremio-flight-connector for configuring flight endpoint in Dremio.

Testing

Set the environment variable DREMIO_CONNECTION_STRING:

Windows: setx DREMIO_CONNECTION_URL "dremio://dremio:dremio123@localhost:31010/dremio"

Linux: export DREMIO_CONNECTION_URL="dremio://dremio:dremio123@localhost:31010/dremio"

And then run:

py.test test

Superset Integration

This SQLAlchemy can be used for connecting Dremio with Superset. Please check superset website for more instructions on the setup.

About

SQLAlchemy for Dremio via the ODBC and Flight interface.

License:Apache License 2.0


Languages

Language:Python 96.9%Language:TSQL 3.1%