-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Conversation
return nil | ||
} | ||
|
||
func newSumArrayCursor(cur cursors.Cursor) cursors.Cursor { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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.
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 |
There was a problem hiding this comment.
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.
No description provided.