From e5e352baab663e996f2ccc907686d20450ab64e8 Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Mon, 13 Nov 2023 13:19:39 -0500 Subject: [PATCH 1/3] Update helpers.py --- superset/models/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/models/helpers.py b/superset/models/helpers.py index 316a46c10ca70..0569ef1943a11 100644 --- a/superset/models/helpers.py +++ b/superset/models/helpers.py @@ -1343,7 +1343,7 @@ def get_time_filter( # pylint: disable=too-many-arguments def values_for_column(self, column_name: str, limit: int = 10000) -> list[Any]: # always denormalize column name before querying for values db_dialect = self.database.get_dialect() - denomalized_col_name = self.database.db_engine_spec.denormalize_name( + denormalized_col_name = self.database.db_engine_spec.denormalize_name( db_dialect, column_name ) cols = {col.column_name: col for col in self.columns} From 31b81a62f37051276b96847173b3e9797c3c01a1 Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Mon, 13 Nov 2023 13:21:41 -0500 Subject: [PATCH 2/3] Update helpers.py --- superset/models/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/models/helpers.py b/superset/models/helpers.py index 0569ef1943a11..4fb01f1375149 100644 --- a/superset/models/helpers.py +++ b/superset/models/helpers.py @@ -1368,7 +1368,7 @@ def values_for_column(self, column_name: str, limit: int = 10000) -> list[Any]: sql = self.mutate_query_from_config(sql) df = pd.read_sql_query(sql=sql, con=engine) - return df[denomalized_col_name].to_list() + return df[denormalized_col_name].to_list() def get_timestamp_expression( self, From 05521188360167ca449572ee9ab26f9dc5ce0e54 Mon Sep 17 00:00:00 2001 From: "Hugh A. Miles II" Date: Mon, 13 Nov 2023 14:17:01 -0500 Subject: [PATCH 3/3] Update helpers.py --- superset/models/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/models/helpers.py b/superset/models/helpers.py index 4fb01f1375149..fc947ff577766 100644 --- a/superset/models/helpers.py +++ b/superset/models/helpers.py @@ -1347,7 +1347,7 @@ def values_for_column(self, column_name: str, limit: int = 10000) -> list[Any]: db_dialect, column_name ) cols = {col.column_name: col for col in self.columns} - target_col = cols[denomalized_col_name] + target_col = cols[denormalized_col_name] tp = self.get_template_processor() tbl, cte = self.get_from_clause(tp)