You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2022/02/12 01:41:41 UTC

[superset] branch master updated: fix: unambiguous trino driver (#18683)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 40ab26d  fix: unambiguous trino driver (#18683)
40ab26d is described below

commit 40ab26d4f14b2fbf24ba46a7bf8c75af1f366c52
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Fri Feb 11 17:40:20 2022 -0800

    fix: unambiguous trino driver (#18683)
---
 setup.py                          | 5 ++++-
 superset/db_engine_specs/trino.py | 1 +
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index ba0f5ba..9899daf 100644
--- a/setup.py
+++ b/setup.py
@@ -62,7 +62,10 @@ setup(
     packages=find_packages(),
     include_package_data=True,
     zip_safe=False,
-    entry_points={"console_scripts": ["superset=superset.cli.main:superset"]},
+    entry_points={
+        "console_scripts": ["superset=superset.cli.main:superset"],
+        "sqlalchemy.dialects": ["trinonative = sqlalchemy_trino.dialect:TrinoDialect"],
+    },
     install_requires=[
         "backoff>=1.8.0",
         "bleach>=3.0.2, <4.0.0",
diff --git a/superset/db_engine_specs/trino.py b/superset/db_engine_specs/trino.py
index 778845d..4e5f153 100644
--- a/superset/db_engine_specs/trino.py
+++ b/superset/db_engine_specs/trino.py
@@ -34,6 +34,7 @@ logger = logging.getLogger(__name__)
 
 class TrinoEngineSpec(BaseEngineSpec):
     engine = "trino"
+    engine_aliases = {"trinonative"}
     engine_name = "Trino"
 
     _time_grain_expressions = {