-
Notifications
You must be signed in to change notification settings - Fork 3.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
[improvement](status) Change the return type for block_compression #47566
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
return Status::MemoryLimitExceeded("Fail to do ZLib decompress, error={}", | ||
zError(zres)); | ||
} else if (zres == Z_BUF_ERROR) { | ||
return Status::InternalError("Fail to do ZLib decompress, error={}", zError(zres)); | ||
} |
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 think here should be a cover branch of zres != Z_OK. and check other changes for this problem
run buildall |
TPC-H: Total hot run time: 31632 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 190503 ms
|
ClickBench: Total hot run time: 30.27 s
|
518ecca
to
cb73b4e
Compare
@@ -184,7 +184,8 @@ class FunctionUncompress : public IFunction { | |||
uncompressed_slice = Slice(col_data.data() + idx, length.value); | |||
|
|||
Slice compressed_data(data.data + 4, data.size - 4); | |||
auto st = compression_codec->decompress(compressed_data, &uncompressed_slice); | |||
auto st = RETURN_IF_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.
no need to modify this
3014897
to
3cd851b
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.
LGTM
PR approved by anyone and no changes requested. |
run buildall |
PR approved by at least one committer and no changes requested. |
TPC-H: Total hot run time: 31959 ms
|
TPC-DS: Total hot run time: 185333 ms
|
ClickBench: Total hot run time: 30.54 s
|
What problem does this PR solve?
The previous block_compression.cpp didn't make sense for the type of Status returned, so I changed it
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
In the past, a function returned multiple states, perhaps directly returning one state. I made different treatments according to different states
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)