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

Minor: Add some more doc comments to BoundedAggregateStream #6881

Merged
merged 2 commits into from
Jul 10, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jul 7, 2023

Which issue does this PR close?

Related to #6798

Rationale for this change

I am working on reducing the duplication between the grouping operators (streams) by combining them. The first step of this is for me to understand what they do, and I wanted to encode this understanding as doc comments.

What changes are included in this PR?

  1. Add doc comments
  2. Do some small renaming for clarity

Are these changes tested?

existing tests

Are there any user-facing changes?

No

@github-actions github-actions bot added the core Core DataFusion crate label Jul 7, 2023
&mut self,
group_values: &[ArrayRef],
per_group_indices: Vec<GroupOrderInfo>,
per_group_order_info: Vec<GroupOrderInfo>,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I found the old name 'group_indices` confusing here as it is not just indices

@@ -348,29 +355,29 @@ impl BoundedAggregateStream {

let AggregationState {
map: row_map,
ordered_group_states: row_group_states,
ordered_group_states,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

made local variable match struct field name

@alamb alamb force-pushed the alamb/doc_streaming_gby branch from 8b81452 to 853869b Compare July 7, 2023 15:10
@alamb alamb marked this pull request as ready for review July 7, 2023 15:11
@alamb alamb force-pushed the alamb/doc_streaming_gby branch from 853869b to 6bb71b4 Compare July 7, 2023 15:15
Copy link
Contributor

@mustafasrepo mustafasrepo left a comment

Choose a reason for hiding this comment

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

Thanks @alamb for this PR.

@alamb alamb merged commit d23e48f into apache:main Jul 10, 2023
@alamb alamb deleted the alamb/doc_streaming_gby branch July 11, 2023 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants