Skip to content

Commit

Permalink
[BUGFIX] Column Descriptive Metrics: Convert table name to lowercase …
Browse files Browse the repository at this point in the history
…for snowflake (#8817)
  • Loading branch information
anthonyburdi authored Oct 10, 2023
1 parent ce09dbc commit 78d1503
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions great_expectations/expectations/metrics/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,10 +394,12 @@ def get_sqlalchemy_column_metadata(
# We must explicitly create a subquery
columns = table_selectable.columns().subquery().columns
else:
# TODO: remove cast to a string once [this](https://github.com/snowflakedb/snowflake-sqlalchemy/issues/157) issue is resovled
table_name = str(table_selectable)
if execution_engine.dialect_name == GXSqlDialect.SNOWFLAKE:
table_name = table_name.lower()
columns = inspector.get_columns(
str(
table_selectable
), # TODO: remove cast to a string once [this](https://github.com/snowflakedb/snowflake-sqlalchemy/issues/157) issue is resovled
table_name=table_name,
schema=schema_name,
)
except (
Expand Down

0 comments on commit 78d1503

Please sign in to comment.