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

feat: aggregate array cursors #19813

Merged
merged 1 commit into from
Oct 23, 2020
Merged

feat: aggregate array cursors #19813

merged 1 commit into from
Oct 23, 2020

Conversation

jpacik
Copy link
Contributor

@jpacik jpacik commented Oct 23, 2020

No description provided.

return nil
}

func newSumArrayCursor(cur cursors.Cursor) cursors.Cursor {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is subsumed by WindowAggregateArrayCursor now.

}
}

func newCountArrayCursor(cur cursors.Cursor) cursors.Cursor {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is also subsumed by WindowAggregateArrayCursor now.

@@ -38,131 +51,16 @@ func newWindowAggregateArrayCursor(ctx context.Context, agg *datatypes.Aggregate
}
}

type arrayCursors struct {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This isn't used at all. OSS uses multiShardArrayCursors which is almost identical in structure except for the underlying series cursor.

Comment on lines 54 to +63
type cursorContext struct {
ctx context.Context
req *cursors.CursorRequest
itrs cursors.CursorIterators
limit int64
count int64
err error
ctx context.Context
req *cursors.CursorRequest
itrs cursors.CursorIterators
err error
}

type multiShardArrayCursors struct {
ctx context.Context
limit int64
req cursors.CursorRequest
ctx context.Context
req cursors.CursorRequest
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Aggregation is now handled by WindowAggregateArrayCursor, so there's no need to calculate summary stats like count and limit here.

@jpacik jpacik requested review from a team and jsternberg and removed request for a team October 23, 2020 20:23
@jpacik jpacik merged commit b7ac9f0 into master Oct 23, 2020
@jpacik jpacik deleted the feat/port-array-cursors branch October 23, 2020 22:13
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