-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[CLN] Cleanup query node after pushdown #3280
[CLN] Cleanup query node after pushdown #3280
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@@ -65,6 +65,7 @@ where | |||
#[derive(Debug)] | |||
pub(super) struct TaskResult<Output, Error> { | |||
result: Result<Output, TaskError<Error>>, | |||
#[allow(dead_code)] |
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.
Rather than allowing dead code and spreading the dead code, can we clean it up?
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.
I left it here because I think this field might be useful in the future (e.g. if an orchestrator needs to trace / persist the result)
For context, it was used by the old hnsw orchestrator where it needs to track multiple concurrent flows of compute. It is not required now because the new orchestrators do not have this need.
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.
At a closer look it is used in some unit tests so probably we should not remove this.
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.
I'd still reap the dead code.
I've reaped the dead codes that are unlikely to be used. The remaining ones are used by unit tests right now, so I'm planning to keep them for now. |
e800d7e
to
8147711
Compare
8147711
to
ba40c1a
Compare
Description of changes
Summarize the changes made by this PR.
Test plan
How are these changes tested?
pytest
for python,yarn test
for js,cargo test
for rustDocumentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?
N/A