-
Notifications
You must be signed in to change notification settings - Fork 525
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
refactor(batch): Remove panic in getting catalog reader. #3451
Conversation
fn sys_catalog_reader_ref(&self) -> Option<SysCatalogReaderRef>; | ||
fn catalog_reader_ref(&self) -> Option<SysCatalogReaderRef>; | ||
|
||
fn try_get_catalog_reader_ref(&self) -> Result<SysCatalogReaderRef> { |
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.
In what case will catalog reader be None?
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.
When it's executed in compute node.
Codecov Report
@@ Coverage Diff @@
## main #3451 +/- ##
=======================================
Coverage 74.27% 74.27%
=======================================
Files 768 768
Lines 106619 106623 +4
=======================================
+ Hits 79191 79195 +4
Misses 27428 27428
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
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.
LGTM
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
RT
Checklist
./risedev check
(or alias,./risedev c
)Refer to a related PR or issue link (optional)