Skip to content

Commit 74d563c

Browse files
emkornfieldpitrou
authored andcommitted
fixes
1 parent 85786ef commit 74d563c

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

cpp/src/arrow/python/common.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ bool IsPythonError(const Status& status) {
160160
return false;
161161
}
162162
auto detail = status.detail();
163-
return detail != nullptr && detail->type_id() == kErrorDetailTypeId;
163+
bool result = detail != nullptr && detail->type_id() == kErrorDetailTypeId;
164+
return result;
164165
}
165166

166167
} // namespace py

cpp/src/arrow/status.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Status::Status(StatusCode code, std::string msg, std::shared_ptr<StatusDetail> d
3131
state_->code = code;
3232
state_->msg = std::move(msg);
3333
if (detail != nullptr) {
34-
std::cerr << "!!!!!!non null detail" << detail;
3534
state_->detail = std::move(detail);
3635
}
3736
}
@@ -42,7 +41,6 @@ void Status::CopyFrom(const Status& s) {
4241
state_ = nullptr;
4342
} else {
4443
state_ = new State(*s.state_);
45-
std::cerr << "!!!!copy_from " << state_->detail;
4644
}
4745
}
4846

cpp/src/plasma/common.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ class PlasmaStatusDetail : public arrow::StatusDetail {
5151
case PlasmaErrorCode::PlasmaObjectAlreadySealed:
5252
type = "Plasma object is already sealed";
5353
break;
54+
default:
55+
type = "Unknown plasma error";
56+
break;
5457
}
5558
return std::string(type);
5659
}

python/pyarrow/includes/libarrow.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ cdef extern from "arrow/python/api.h" namespace "arrow::py" nogil:
12071207
shared_ptr[CDataType] GetPrimitiveType(Type type)
12081208
shared_ptr[CDataType] GetTimestampType(TimeUnit unit)
12091209

1210-
cdef c_bool IsPythonError(const CStatus& status)
1210+
c_bool IsPythonError(const CStatus& status)
12111211
object PyHalf_FromHalf(npy_half value)
12121212

12131213
cdef cppclass PyConversionOptions:

0 commit comments

Comments
 (0)