-
Notifications
You must be signed in to change notification settings - Fork 3k
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
enhance: retrieve output fields after local reduce #32346
enhance: retrieve output fields after local reduce #32346
Conversation
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
@longjiquan E2e jenkins job failed, comment |
@longjiquan ut workflow job failed, comment |
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
@longjiquan ut workflow job failed, comment |
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
@longjiquan E2e jenkins job failed, comment |
/run-cpu-e2e |
@longjiquan E2e jenkins job failed, comment |
@longjiquan E2e jenkins job failed, comment |
/run-cpu-e2e |
@longjiquan E2e jenkins job failed, comment |
pkg/util/typeutil/schema.go
Outdated
@@ -568,6 +568,121 @@ func PrepareResultFieldData(sample []*schemapb.FieldData, topK int64) []*schemap | |||
return result | |||
} | |||
|
|||
func ReserveSize(dst, src *schemapb.FieldData, size int64) { |
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.
no usage?
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.
Yeah, I'll delete this function.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #32346 +/- ##
==========================================
- Coverage 81.80% 81.73% -0.08%
==========================================
Files 999 990 -9
Lines 124240 124558 +318
==========================================
+ Hits 101631 101803 +172
- Misses 18734 18883 +149
+ Partials 3875 3872 -3
|
} | ||
|
||
// limit retrieve result to avoid oom | ||
if retSize > maxOutputSize { |
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.
revert this change
continue | ||
} | ||
idx, theOffsets := i, offsets | ||
eg.Go(func() error { |
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.
It is advisable to avoid creating many goroutines here.
segment->Retrieve(plan, timestamp, limit_size, ignore_non_pk); | ||
|
||
auto size = retrieve_result->ByteSizeLong(); | ||
void* buffer = malloc(size); |
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.
make use of RAII to ensure exception safety. you can modify this in another pr.
Signed-off-by: longjiquan <jiquan.long@zilliz.com>
@longjiquan E2e jenkins job failed, comment |
/run-cpu-e2e |
@longjiquan E2e jenkins job failed, comment |
/run-cpu-e2e |
@longjiquan E2e jenkins job failed, comment |
/run-cpu-e2e |
@longjiquan E2e jenkins job failed, comment |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: czs007, longjiquan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/run-cpu-e2e |
@longjiquan E2e jenkins job failed, comment |
/run-cpu-e2e |
@longjiquan E2e jenkins job failed, comment |
/run-cpu-e2e |
@longjiquan E2e jenkins job failed, comment |
/run-cpu-e2e |
issue: #31822