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

Allow partial updates on computed column source columns #729

Merged
merged 3 commits into from
Sep 17, 2019
Merged

Conversation

sc1f
Copy link
Contributor

@sc1f sc1f commented Sep 17, 2019

This PR refactors logic around constructing computed columns in order to move operations to the t_gnode's _process method.

Instead of constructing computed columns before the table is sent to _process(), use the metadata of the _process method to allow for partial updates (implicit and explicit index) on underlying columns for computed columns, which automatically propagates changes to computed columns.

Previous iterations would recalculate each computed column for the total number of rows on the table; this allows computed column recalculation to happen ONLY for rows that were updated within _process().

@texodus
Copy link
Member

texodus commented Sep 17, 2019

Looks great, thanks for the PR!

@texodus texodus merged commit 9bc0bfa into master Sep 17, 2019
@texodus texodus deleted the computed-fix branch September 22, 2019 14:20
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.

3 participants