Skip to content

Commit

Permalink
fix: Dremio alias (apache#28222)
Browse files Browse the repository at this point in the history
(cherry picked from commit 173d5d0)
  • Loading branch information
betodealmeida authored and michael-s-molina committed Apr 29, 2024
1 parent ccda3b4 commit 2d0eb38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion superset/db_engine_specs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def get_available_engine_specs() -> dict[type[BaseEngineSpec], set[str]]:
try:
dialect = ep.load()
except Exception as ex: # pylint: disable=broad-except
logger.warning("Unable to load SQLAlchemy dialect %s: %s", dialect, ex)
logger.warning("Unable to load SQLAlchemy dialect %s: %s", ep.name, ex)
else:
backend = dialect.name
if isinstance(backend, bytes):
Expand Down
7 changes: 7 additions & 0 deletions superset/db_engine_specs/dremio.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
class DremioEngineSpec(BaseEngineSpec):
engine = "dremio"
engine_name = "Dremio"
engine_aliases = {"dremio+flight"}
sqlalchemy_uri_placeholder = (
"dremio+flight://data.dremio.cloud:443/?"
"Token=<TOKEN>&"
"UseEncryption=true&"
"disableCertificateVerification=true"
)

_time_grain_expressions = {
None: "{col}",
Expand Down

0 comments on commit 2d0eb38

Please sign in to comment.