feat: add option for hash algorithms (#35621)

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
This commit is contained in:
Daniel Vaz Gaspar
2025-12-09 16:59:07 +00:00
committed by GitHub
parent 8d7c83419c
commit bb22eb1ca8
36 changed files with 1032 additions and 166 deletions

View File

@@ -39,7 +39,7 @@ from superset.db_engine_specs.base import (
from superset.db_engine_specs.exceptions import SupersetDBAPIDatabaseError
from superset.errors import ErrorLevel, SupersetError, SupersetErrorType
from superset.utils.core import GenericDataType
from superset.utils.hashing import md5_sha_from_str
from superset.utils.hashing import hash_from_str
from superset.utils.network import is_hostname_valid, is_port_open
if TYPE_CHECKING:
@@ -363,4 +363,4 @@ class DatabendConnectEngineSpec(BasicParametersMixin, DatabendEngineSpec):
:param label: Expected expression label
:return: Conditionally mutated label
"""
return f"{label}_{md5_sha_from_str(label)[:6]}"
return f"{label}_{hash_from_str(label)[:6]}"