Skip to content
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

Merged
merged 2 commits into from
Jun 24, 2022

Conversation

liurenjie1024
Copy link
Contributor

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.

What's changed and what's your intention?

RT

Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)

fn sys_catalog_reader_ref(&self) -> Option<SysCatalogReaderRef>;
fn catalog_reader_ref(&self) -> Option<SysCatalogReaderRef>;

fn try_get_catalog_reader_ref(&self) -> Result<SysCatalogReaderRef> {
Copy link
Contributor

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?

Copy link
Contributor Author

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
Copy link

codecov bot commented Jun 24, 2022

Codecov Report

Merging #3451 (f9dfb37) into main (36e3d6b) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main    #3451   +/-   ##
=======================================
  Coverage   74.27%   74.27%           
=======================================
  Files         768      768           
  Lines      106619   106623    +4     
=======================================
+ Hits        79191    79195    +4     
  Misses      27428    27428           
Flag Coverage Δ
rust 74.27% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/batch/src/executor/sys_row_seq_scan.rs 0.00% <0.00%> (ø)
src/batch/src/task/context.rs 13.63% <0.00%> (-1.75%) ⬇️
src/frontend/src/scheduler/task_context.rs 0.00% <0.00%> (ø)
src/connector/src/filesystem/file_common.rs 80.35% <0.00%> (-0.45%) ⬇️
src/meta/src/manager/id.rs 95.50% <0.00%> (ø)
src/storage/src/hummock/local_version_manager.rs 84.53% <0.00%> (+0.15%) ⬆️
src/frontend/src/expr/utils.rs 99.24% <0.00%> (+0.75%) ⬆️
src/meta/src/hummock/mock_hummock_meta_client.rs 41.50% <0.00%> (+0.94%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Copy link
Contributor

@yezizp2012 yezizp2012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@liurenjie1024 liurenjie1024 merged commit 91a6990 into main Jun 24, 2022
@liurenjie1024 liurenjie1024 deleted the renjie/refactor_remove_user branch June 24, 2022 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants