superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Add db_engine_spec for Druid (#4063)
Date Fri, 15 Dec 2017 19:47:05 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new cf1d9ce  Add db_engine_spec for Druid (#4063)
cf1d9ce is described below

commit cf1d9ce1e621e37ad7681792be161049a9a468d9
Author: Maxime Beauchemin <maximebeauchemin@gmail.com>
AuthorDate: Fri Dec 15 11:47:00 2017 -0800

    Add db_engine_spec for Druid (#4063)
    
    The `druiddb` pypi package provides a dbapi and sqlalchemy dialect for
    Druid. This PR hooks adds some superset-specific conf.
---
 superset/db_engine_specs.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index 6700105..158d9d6 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -1217,6 +1217,12 @@ class ImpalaEngineSpec(BaseEngineSpec):
         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)}

-- 
To stop receiving notification emails like this one, please contact
['"commits@superset.apache.org" <commits@superset.apache.org>'].

Mime
View raw message