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

Repeat emit for global aggregation #848

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

chenziliang
Copy link
Collaborator

PR checklist:

  • Did you run ClangFormat ?
  • Did you separate headers to a different section in existing community code base ?
  • Did you surround proton: starts/ends for new code in existing community code base ?

Please write user-readable short description of the changes:

Closed #847

@chenziliang chenziliang self-assigned this Oct 30, 2024
@chenziliang chenziliang marked this pull request as draft October 30, 2024 18:02
@chenziliang chenziliang marked this pull request as ready for review October 30, 2024 18:13
@chenziliang chenziliang requested a review from yl-lisen October 30, 2024 21:36
@@ -51,6 +59,8 @@ struct AggregatingTransformParams
return res;
}

bool repeatEmit() const noexcept { return emit_repeat && !emit_changelog && emit_mode < EmitMode::OnUpdate; }
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we don't need it.
Since the global aggregation already checked !emit_changelog and the AST parsing ensured emit_mode must be emit periodic as well

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why global aggr cannot emit changelog ?

Comment on lines -132 to 148
{
*rows_since_last_finalizations[current_variant] += rows;
}
void addRowCount(size_t rows, size_t current_variant) { *rows_since_last_finalizations[current_variant] += rows; }
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

clang format ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is clang-formatted

@chenziliang chenziliang merged commit 19442f8 into develop Oct 31, 2024
3 checks passed
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.

Global Aggregation repeat emit
2 participants