Skip to content

Commit

Permalink
fix: unambiguous trino driver
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Feb 11, 2022
1 parent a7d505d commit 565c59d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def get_git_sha() -> str:
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",
Expand Down
1 change: 1 addition & 0 deletions superset/db_engine_specs/trino.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

class TrinoEngineSpec(BaseEngineSpec):
engine = "trino"
engine_aliases = {"trinonative"}
engine_name = "Trino"

_time_grain_expressions = {
Expand Down

0 comments on commit 565c59d

Please sign in to comment.