diff --git a/great_expectations_cloud/agent/actions/utils.py b/great_expectations_cloud/agent/actions/utils.py index 52e9c5d2..a9f1a120 100644 --- a/great_expectations_cloud/agent/actions/utils.py +++ b/great_expectations_cloud/agent/actions/utils.py @@ -16,6 +16,7 @@ def get_table_names(datasource: SQLDatasource) -> list[str]: # Or if the role does not have access to the schema (it silently fails and defaults to using default_schema) # See https://github.com/snowflakedb/snowflake-sqlalchemy/blob/e78319725d4b96ea205ef1264b744c65eb37853d/src/snowflake/sqlalchemy/snowdialect.py#L731 # Explicitly passing the schema to the inspector to get the table names + # Also converting to list to ensure JSON serializable return list(inspector.get_table_names(schema=datasource.schema_)) return list(inspector.get_table_names())