From c8796967973a533be7e3ec0644093b891e95051b Mon Sep 17 00:00:00 2001 From: T Pham Date: Mon, 23 Dec 2024 12:43:50 -0800 Subject: [PATCH] BUGFIX: fix DraftDatasourceConfigAction (#601) Co-authored-by: Great Expectations --- great_expectations_cloud/agent/actions/utils.py | 5 +++-- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/great_expectations_cloud/agent/actions/utils.py b/great_expectations_cloud/agent/actions/utils.py index a572e007..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 - return inspector.get_table_names(schema=datasource.schema_) + # Also converting to list to ensure JSON serializable + return list(inspector.get_table_names(schema=datasource.schema_)) - return inspector.get_table_names() + return list(inspector.get_table_names()) diff --git a/pyproject.toml b/pyproject.toml index a9113ee6..056d1050 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "great_expectations_cloud" -version = "20241220.0.dev0" +version = "20241221.0.dev0" description = "Great Expectations Cloud" authors = ["The Great Expectations Team "] repository = "https://github.com/great-expectations/cloud"