-
Notifications
You must be signed in to change notification settings - Fork 22
Extract interfaces from FileBatchReader to PrefetchFileBatchReader #47
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
Conversation
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
5173240 to
a9cdabb
Compare
a9cdabb to
276cf85
Compare
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (2)
src/paimon/common/reader/prefetch_file_batch_reader_impl.cpp:107
- The constructor parameter is passed by const reference but then moved with std::move. This is problematic because:
- Moving from a const reference is ineffective - it will copy instead of move
- The parameter should either be passed by value (and then moved), or passed by rvalue reference
The constructor should either accept the parameter by value or by rvalue reference to properly transfer ownership.
src/paimon/common/reader/prefetch_file_batch_reader_impl.h:111
- The constructor parameter is declared as const reference but is moved from with std::move on line 107 of the implementation file. This is ineffective - moving from a const reference results in a copy, not a move. The parameter should either be passed by value or by rvalue reference to enable proper move semantics.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
39dceae to
bceadf7
Compare
lxy-9602
left a comment
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.
+1
Purpose
Linked issue: close #xxx
Tests
API and Format
Documentation