fix(clickhouse): remove _mutate_label workaround and bump clickhouse-connect to >=0.13.0 (#38280)

This commit is contained in:
Joe Spadola
2026-02-26 16:12:54 -08:00
committed by GitHub
parent 6589ee48f9
commit bb6ee9e722
5 changed files with 15 additions and 40 deletions

View File

@@ -212,23 +212,6 @@ def test_connect_get_column_spec(
assert_column_spec(spec, native_type, sqla_type, attrs, generic_type, is_dttm)
@pytest.mark.parametrize(
"column_name,expected_result",
[
# 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:
from superset.db_engine_specs.clickhouse import (
ClickHouseConnectEngineSpec as spec, # noqa: N813
)
label = spec.make_label_compatible(column_name)
assert label == expected_result
@pytest.mark.parametrize(
"schema, expected_result",
[