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

Pseudo-partitioning #4005

Closed
aodhan-domhnaill opened this issue Oct 5, 2021 · 1 comment
Closed

Pseudo-partitioning #4005

aodhan-domhnaill opened this issue Oct 5, 2021 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@aodhan-domhnaill
Copy link

Describe the feature

Incremental materialization that breaks a single table up into multiple tables based on the value in a column.

Describe alternatives you've considered

Using multiple models for each value won't work, because if a new value gets added to the column, then it won't automatically create the partition

Additional context

Not specific to a given database, because it simply creates multiple tables for the values in the column.

I'm not sure how ref would work. It's possible that a view could be created that unions the partition tables in a way that helps the query optimizer drop unused partitions. For example, union while hard coding the partition column values (untested).

Additionally, a strategy for table naming would be needed.

Who will this benefit?

Anyone who needs partitions.

Are you interested in contributing this feature?

Yes, but I need guidance.

@aodhan-domhnaill aodhan-domhnaill added enhancement New feature or request triage labels Oct 5, 2021
@jtcohen6
Copy link
Contributor

jtcohen6 commented Oct 6, 2021

Thanks @aidan-plenert-macdonald! There's an existing feature request for this: #1637

That issue has been open for a while, and it's still very much an open question for us. I think this functionality would be tricky to implement—for the reasons you mention, among others—but it's an important one, and I'd be interested in taking another look after v1.0 (so, possibly next year).

I'm going to close this issue in the meantime, to keep the conversation centralized over there.

@jtcohen6 jtcohen6 added duplicate This issue or pull request already exists and removed triage labels Oct 6, 2021
@jtcohen6 jtcohen6 closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants