-
Notifications
You must be signed in to change notification settings - Fork 101
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
feat: fix athena partitions limit #360
feat: fix athena partitions limit #360
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing 🔥
How is handled when we want to redo a certain batch ? Is there a way to delete overlapping partitions as it was done in the insert_by_period made by Jesse ? |
@Jrmyy all I've changed the way how the tmp table is created and how the data from it is inserted into target relation. All other logic including |
dbt/include/athena/macros/materializations/models/table/create_table_as.sql
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@svdimchenko this is an amazing piece of work 💯
I left an improvement comment - also do you think that we can add some integration tests where we test that the actually written data is correct:
- integrity - e.g. the dataset return by
sql
mode match what we have in the final table - covered by the integrity check, but maybe a check to see that all the values of the partitions are in the actual final table
@svdimchenko I did some more tests - let's fix the conflicts and merge ok? - I'm looking forward to having this merge before we release 1.6 :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
hey does this work for (non-iceberg) tables that are bucketed in addition to partitioned? |
AFIK for bucketing (hive and not hive) you won't get any partition limitation. Did you face partition limitations with bucketing? |
Description
Resolves: #87
Models used to test
For table materialization (iceberg):
For table materialization (hive):
For incremental materialization:
Checklist