Skip to content

Commit

Permalink
BUGFIX: fix DraftDatasourceConfigAction (#601)
Browse files Browse the repository at this point in the history
Co-authored-by: Great Expectations <[email protected]>
  • Loading branch information
TrangPham and tiny-tim-bot authored Dec 23, 2024
1 parent 2220f6b commit c879696
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions great_expectations_cloud/agent/actions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
repository = "https://github.com/great-expectations/cloud"
Expand Down

0 comments on commit c879696

Please sign in to comment.