mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
feat: add option for hash algorithms (#35621)
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8d7c83419c
commit
bb22eb1ca8
@@ -47,11 +47,12 @@ class TestBigQueryDbEngineSpec(SupersetTestCase):
|
||||
"""
|
||||
DB Eng Specs (bigquery): Test column label
|
||||
"""
|
||||
# Expected labels with SHA-256 hash suffix (first 5 chars prefixed with _)
|
||||
test_cases = {
|
||||
"Col": "Col",
|
||||
"SUM(x)": "SUM_x__5f110",
|
||||
"SUM[x]": "SUM_x__7ebe1",
|
||||
"12345_col": "_12345_col_8d390",
|
||||
"SUM(x)": "SUM_x__b681e",
|
||||
"SUM[x]": "SUM_x__ceaf6",
|
||||
"12345_col": "_12345_col_b1415",
|
||||
}
|
||||
for original, expected in test_cases.items():
|
||||
actual = BigQueryEngineSpec.make_label_compatible(column(original).name)
|
||||
|
||||
Reference in New Issue
Block a user