This is an automated email from the ASF dual-hosted git repository. beto pushed a commit to branch explorable in repository https://gitbox.apache.org/repos/asf/superset.git
commit bf975fd99961a5303b64691019d696673566a6ba Author: Beto Dealmeida <[email protected]> AuthorDate: Mon Oct 6 08:14:52 2025 -0400 WIP --- superset/semantic_layers/snowflake_.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/superset/semantic_layers/snowflake_.py b/superset/semantic_layers/snowflake_.py index 6212597a58..198ba9d579 100644 --- a/superset/semantic_layers/snowflake_.py +++ b/superset/semantic_layers/snowflake_.py @@ -368,19 +368,12 @@ class SnowflakeExplorable: """ dimensions: set[Dimension] = set() - query = f""" - DESC SEMANTIC VIEW {self.uid()} - ->> SELECT "object_name", "property", "property_value" - FROM $1 - WHERE - "object_kind" = 'DIMENSION' AND - "property" IN ('COMMENT', 'DATA_TYPE', 'EXPRESSION', 'TABLE'); - """ # noqa: S608 - + query = f"SHOW SEMANTIC DIMENSIONS IN {self.uid};" connection_parameters = get_connection_parameters(self.configuration) with connect(**connection_parameters) as connection: cursor = connection.cursor(DictCursor) rows = cursor.execute(query).fetchall() + print(rows) for name, group in itertools.groupby(rows, key=lambda x: x["object_name"]): attributes = defaultdict(set)
