Skip to content

Conversation

@sean-rose
Copy link
Contributor

Tables can have a maximum of 10,000 partitions, but when partitions expire they apparently continue to count toward the table's partition quota for up to 14 days afterwards (7 days of time travel and 7 days of fail-safe), per the BigQuery docs:

When a partition expires, BigQuery deletes that partition. The partition data is retained in accordance with time travel and fail-safe policies, and can be charged for, depending on your billing model. Until then, the partition counts for purposes of table quotas.

And I subtracted one additional day just to make sure we don't hit the table partition limit.

Tables can have a maximum of 10,000 partitions, but when partitions expire they apparently continue to count toward the table's partition quota for up to 14 days afterwards (7 days of time travel and 7 days of fail-safe), and I subtracted one additional day just to make sure we don't hit the table partition limit.
Copy link
Member

@whd whd left a comment

Choose a reason for hiding this comment

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

Academically this makes sense but as a practical matter I'm not sure it's worth landing this. If we do we should update https://github.com/mozilla-services/mozilla-pipeline-schemas/ as well to match.

Copy link

@kwindau kwindau left a comment

Choose a reason for hiding this comment

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

Don't see the harm in this, seems like a good idea

@sean-rose
Copy link
Contributor Author

Academically this makes sense but as a practical matter I'm not sure it's worth landing this.

IMO if we're going to set an explicit upper limit it should be something that would actually work in practice, or we should not set the theoretical upper limit at all, but if the consensus is to leave it as is that's fine.

If we do we should update https://github.com/mozilla-services/mozilla-pipeline-schemas/ as well to match.

Thanks for catching this. I did file mozilla-services/mozilla-pipeline-schemas#833 in case we opt to proceed.

@whd
Copy link
Member

whd commented Nov 27, 2024

Per slack discussion deferring decisions on this PR until meetings next week

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.

4 participants