Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Aug 5, 2024

Which issue does this PR close?

Follow on to #11627

Rationale for this change

Per https://github.com/apache/datafusion/pull/11627/files#r1694253923, I think embedding the aggregation probe logic into a function makes the code eaiser to understand

What changes are included in this PR?

  1. Pull logic into a function should_skip_aggregation
  2. Update some comments to /// from // for consistency

Are these changes tested?

Are there any user-facing changes?

No, this is all internal code organization

.as_ref()
.is_some_and(|probe| probe.should_skip())
{
} else if self.should_skip_aggregation() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the main rationale is to pull this check into a function.

// total number of unique groups.
//
// Note: currently spilling is not supported for Partial aggregation
/// Updates skip aggregation probe state.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

drive by conversion to docstring style comments

@Dandandan Dandandan merged commit a1645c4 into apache:main Aug 6, 2024
@alamb alamb deleted the alamb/small_function branch August 7, 2024 17:02
@alamb
Copy link
Contributor Author

alamb commented Aug 7, 2024

Thank you @Dandandan

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.

2 participants