Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix trino__drop_old_relations and trino__drop_schemas_by_prefixes #2

Merged
merged 1 commit into from
May 25, 2022

Conversation

mdesmet
Copy link
Member

@mdesmet mdesmet commented May 19, 2022

No description provided.

from sys.schemas
where name LIKE '{{prefix}}%'
select schema_name
from "{{ target.database }}"."information_schema"."schemata"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What table is schemata ?

Copy link
Member Author

@mdesmet mdesmet May 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it returns all schema that exist on that catalog (part of information_schema).

@hovaesco hovaesco merged commit c47b63b into main May 25, 2022
@hovaesco hovaesco deleted the schema_cleanup branch May 25, 2022 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants