fix(oracle): denormalize column names where applicable (#24471)

This commit is contained in:
Ville Brofeldt
2023-06-21 22:35:46 +03:00
committed by GitHub
parent fb08e0ecfc
commit ea89949118
4 changed files with 41 additions and 0 deletions

View File

@@ -111,3 +111,17 @@ def test_convert_dttm(
from superset.db_engine_specs.oracle import OracleEngineSpec as spec
assert_convert_dttm(spec, target_type, expected_result, dttm)
@pytest.mark.parametrize(
"name,expected_result",
[
("col", "COL"),
("Col", "Col"),
("COL", "COL"),
],
)
def test_denormalize_name(name: str, expected_result: str):
from superset.db_engine_specs.oracle import OracleEngineSpec as spec
assert spec.denormalize_name(oracle.dialect(), name) == expected_result