-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Hourly, monthly and yearly partitions in BigQuery #2903
Hourly, monthly and yearly partitions in BigQuery #2903
Conversation
Hi @db-magnus ,
|
@db-magnus This is really cool, thanks for picking it up! I just reran the failing Redshift test, which was an aberration. @VasiliiSurov Nice point on |
@jtcohen6 I see this as another optional configuration just like
|
@VasiliiSurov thanks for the feedback, added in the day partitioning and granularity in _partitions_match. |
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.
@db-magnus I tested out locally, this is looking solid. I left a few comments.
Could you also add a changelog note (linking #2476 and #2903, under v0.19.0 "Features") ,and add yourself to the list of contributors?
@VasiliiSurov Could you open a new issue to continue the discussion around partition expiration? I'd rather keep this PR narrow in its scope. I also feel I need to better understand the implications of partition-based time-to-live, especially in context of incremental models that only update some of their partitions during standard runs.
Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
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.
This is looking good. Once we can get the tests running, I'm excited to merge it in. Thanks for opening dbt-labs/docs.getdbt.com#472 as well, I'll take a look.
Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
Co-authored-by: Jeremy Cohen <jtcohen6@gmail.com>
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.
Thanks for the contribution @db-magnus!
resolves #2476
Description
Added possibility for more partition types on timestamp or datetime columns.
Using the granularity field as discussed in the issue to specify how to partition. Had to change some existing tests to support this granularity field.
I've added some tests in , let me know if this is ok or if I should do it differently.
Checklist
CHANGELOG.md
and added information about my change to the "dbt next" section.