Skip to content

Commit

Permalink
Add db_engine_spec for Druid (apache#4063)
Browse files Browse the repository at this point in the history
The `druiddb` pypi package provides a dbapi and sqlalchemy dialect for
Druid. This PR hooks adds some superset-specific conf.
  • Loading branch information
mistercrunch committed Dec 15, 2017
1 parent 1e22c50 commit a1cbe85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions superset/db_engine_specs.py
Expand Up @@ -1217,6 +1217,12 @@ def get_schema_names(cls, inspector):
return schemas


class DruidEngineSpec(BaseEngineSpec):
"""Engine spec for Druid.io"""
engine = 'druid'
limit_method = LimitMethod.FETCH_MANY


engines = {
o.engine: o for o in globals().values()
if inspect.isclass(o) and issubclass(o, BaseEngineSpec)}

0 comments on commit a1cbe85

Please sign in to comment.