diff --git a/cpp/src/arrow/python/common.cc b/cpp/src/arrow/python/common.cc index ad7864697e5f2..cd8f0f67518e6 100644 --- a/cpp/src/arrow/python/common.cc +++ b/cpp/src/arrow/python/common.cc @@ -159,7 +159,7 @@ bool IsPythonError(const Status& status) { if (status.ok()) { return false; } - auto detail = status.detail().get(); + auto* detail = status.detail(); return detail != nullptr && detail->type_id() == kErrorDetailTypeId; }