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

@@ -215,8 +215,9 @@ def test_connect_get_column_spec(
@pytest.mark.parametrize(
"column_name,expected_result",
[
("time", "time_07cc69"),
("count", "count_e2942a"),
# SHA-256 hash suffix (first 6 chars) with default HASH_ALGORITHM
("time", "time_336074"),
("count", "count_6c3549"),
],
)
def test_connect_make_label_compatible(column_name: str, expected_result: str) -> None:

View File

@@ -127,8 +127,9 @@ def test_get_column_spec(
@pytest.mark.parametrize(
"column_name,expected_result",
[
("time", "time_07cc69"),
("count", "count_e2942a"),
# SHA-256 hash suffix (first 6 chars) with default HASH_ALGORITHM
("time", "time_336074"),
("count", "count_6c3549"),
],
)
def test_make_label_compatible(column_name: str, expected_result: str) -> None:

View File

@@ -162,8 +162,9 @@ def test_get_schema_from_engine_params() -> None:
@pytest.mark.parametrize(
"column_name,expected_result",
[
("time", "time_07cc69"),
("count", "count_e2942a"),
# SHA-256 hash suffix (first 6 chars) with default HASH_ALGORITHM
("time", "time_336074"),
("count", "count_6c3549"),
],
)
def test_connect_make_label_compatible(column_name: str, expected_result: str) -> None:

View File

@@ -31,7 +31,8 @@ from tests.unit_tests.fixtures.common import dttm # noqa: F401
@pytest.mark.parametrize(
"column_name,expected_result",
[
("a" * 129, "b325dc1c6f5e7a2b7cf465b9feab7948"),
# SHA-256 hash of 129 'a' characters with default HASH_ALGORITHM
("a" * 129, "c12cb024a2e5551cca0e08fce8f1c5e314555cc3fef6329ee994a3db752166ae"),
("snake_label", "snake_label"),
("camelLabel", "camelLabel"),
],