Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TrangPham authored Dec 23, 2024
1 parent d0cc345 commit 1cd5d7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 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
# Also converting to list to ensure JSON serializable
return list(inspector.get_table_names(schema=datasource.schema_))

return list(inspector.get_table_names())

0 comments on commit 1cd5d7e

Please # to comment.