Databricks Interactive Cluster connectivity via the PyHive connector.
Known Incompatibilities
SQLAlchemy 2.0
databricks-dbapi pins sqlalchemy>=1.3,<2.0; no SQLAlchemy 2.0 support is planned for the legacy driver. Use the Databricks Python Connector (databricks-sql-connector) instead.
Installation
Required packages: pyhivepyhivedatabricks-dbapi[hive]pyhivethrift
Version requirement: PyHive 0.7.0 or later is required for SQLAlchemy 2. PyHive 0.6.5 imports the removed sqlalchemy.databases module.
pip install "apache-superset[presto]"Drivers
PyHiveRecommended
PyPI Package:
pyhivepresto://{hostname}:{port}/{database}Supported Features
JOINsSubqueriesDynamic SchemaCatalog SupportDynamic CatalogSSH TunnelingQuery CancellationFile UploadUser ImpersonationCost EstimationSQL Validation
Feature Score: 140/201
Time Grains
Common Time Grains:
SECONDMINUTEHOURDAYWEEKMONTHQUARTERYEAR
Extended Time Grains:
FIVE_SECONDSTHIRTY_SECONDSFIVE_MINUTESTEN_MINUTESFIFTEEN_MINUTESTHIRTY_MINUTESHALF_HOURSIX_HOURSWEEK_STARTING_SUNDAYWEEK_STARTING_MONDAYWEEK_ENDING_SATURDAYWEEK_ENDING_SUNDAYQUARTER_YEAR
Extended Aggregate Functions
The base aggregates (SUM, COUNT, AVG, MIN, MAX, COUNT DISTINCT) are supported everywhere; these are opt-in per engine.
MEDIANSTDDEV_SAMPVAR_SAMP
