-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Chore](bitmap) change BitmapValue CHECK to throw exception #59464
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
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
mrhhsg
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.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
This pull request refactors error handling in the `BitmapValue` class to improve robustness and provide clearer error messages. Instead of using `CHECK` macros, it now throws exceptions with detailed information when inconsistencies are detected in the bitmap value's set count. **Error handling improvements:** * Replaced `CHECK` and `CHECK_EQ` macros with explicit exception throwing (`Exception(ErrorCode::INTERNAL_ERROR, ...)`) when the set count exceeds the threshold or does not match the expected size, including detailed error messages with the problematic values.
#59464 (#59491) Cherry-picked from #59464 Co-authored-by: Pxl <[email protected]>
What problem does this PR solve?
This pull request refactors error handling in the
BitmapValueclass to improve robustness and provide clearer error messages. Instead of usingCHECKmacros, it now throws exceptions with detailed information when inconsistencies are detected in the bitmap value's set count.Error handling improvements:
CHECKandCHECK_EQmacros with explicit exception throwing (Exception(ErrorCode::INTERNAL_ERROR, ...)) when the set count exceeds the threshold or does not match the expected size, including detailed error messages with the problematic values.Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)