Skip to content

Commit

Permalink
[native] Categorize memory abort exception as insufficient resource
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjialiang committed Oct 31, 2023
1 parent d209e37 commit b138fb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions presto-native-execution/presto_cpp/main/common/Exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ class VeloxToPrestoExceptionTranslator {
{0x00020000,
"GENERIC_INSUFFICIENT_RESOURCES",
protocol::ErrorType::INSUFFICIENT_RESOURCES}},
{velox::error_code::kMemAborted,
{0x00020000,
"GENERIC_INSUFFICIENT_RESOURCES",
protocol::ErrorType::INSUFFICIENT_RESOURCES}},
{velox::error_code::kInvalidState,
{0x00010000,
"GENERIC_INTERNAL_ERROR",
Expand Down

0 comments on commit b138fb5

Please sign in to comment.