You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2021/06/16 16:50:22 UTC

[superset] branch fix-dremio-issue created (now 91cadac)

This is an automated email from the ASF dual-hosted git repository.

hugh pushed a change to branch fix-dremio-issue
in repository https://gitbox.apache.org/repos/asf/superset.git.


      at 91cadac  Update __init__.py

This branch includes the following new commits:

     new 91cadac  Update __init__.py

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[superset] 01/01: Update __init__.py

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch fix-dremio-issue
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 91cadac7945627a960267abf2a1d93f8e0b51d79
Author: Hugh A. Miles II <hu...@gmail.com>
AuthorDate: Wed Jun 16 12:49:41 2021 -0400

    Update __init__.py
---
 superset/db_engine_specs/__init__.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/superset/db_engine_specs/__init__.py b/superset/db_engine_specs/__init__.py
index f4ced6f..1a73a44 100644
--- a/superset/db_engine_specs/__init__.py
+++ b/superset/db_engine_specs/__init__.py
@@ -121,7 +121,10 @@ def get_available_engine_specs() -> Dict[Type[BaseEngineSpec], Set[str]]:
         except Exception:  # pylint: disable=broad-except
             logger.warning("Unable to load SQLAlchemy dialect: %s", dialect)
         else:
-            drivers[dialect.name].add(dialect.driver)
+            if hasattr(dialect, "driver"):
+                drivers[dialect.name].add(dialect.driver)
+            else:
+                drivers[dialect.name].add(dialect.name)
 
     engine_specs = get_engine_specs()
     return {