-
Notifications
You must be signed in to change notification settings - Fork 103
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
Number of TABLE_VERSION resources exceeds the account limit #267
Comments
Hello 👋🏻 |
As far as I know there are only 2 type of materializations that can lead to this issue:
If you are using iceberg is pretty normal that every transactions is a creating a new snapshot id, means a new table version. You can consider to build a custom macro that calls this function: https://github.com/dbt-athena/dbt-athena/blob/main/dbt/adapters/athena/impl.py#LL625C9-L625C35 and call it as a post hook in your models. Looking at here: https://docs.aws.amazon.com/general/latest/gr/glue.html seems that limits can be increased. |
Yeah our limit is 1M and we're hitting it. The aws guy here is looking into it. We don't really have much in the way of separate environments so our dev is the thing that's doing the polluting. We run some many times a day. All views or tables. The entire 1M isn't just the DBT project but we're not being good neighbors basically. I like the expiry macro. I'll try it out. Edit It is a hive metastore. I don't know why it it's not expiring. Is there anything I can do in order to help debug that? |
Glue catalog is a managed hive metastore, that is also used by iceberg tables (managed) to point to the latest committed snapshots. Do you use iceberg? or do you use table_hive_ha in some of your models? If so, I would start with the tables produced by those materializations. |
Oh sorry, all of our tables are unmanaged and I'm pretty sure we don't use iceberg anywhere (at least that I know of). Right now I've got this and it SEEMS to be working. But I need to upgrade and I'm running into permissions issues from #262 .
|
Oh, it's not working automatically because I lack the |
currently |
As this seems to be a permissions issue. i'm closing this. |
Problem
When I try to run I occasionally get this.
Number of TABLE_VERSION resources exceeds the account limit (Service: AmazonDataCatalog; Status Code: 400; Error Code: ResourceNumberLimitExceededException;
Now I'm told that this is because glue is keeping revisions every time we make a table or view (it doesn't seem to affect seeds). My athena person said I should drop and create instead of what dbt is doing which is
create or replace table or view.
The text was updated successfully, but these errors were encountered: