Search before asking
Description
Currently, OLAPInternalError will catch the exception stack, however in some cases these stack messages can be confusing:

While running the above code, even if the status returned is ok, OLAPInternalError is constructed in if condition, and it will capture the stack info. What's worse, Status::assemble_state() will print a WARNING log, though there is no exception Status:

Solution
Check Status::precise_code instead of constructing OLAPInternalError in if condition.
Are you willing to submit PR?
Code of Conduct