Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
emkornfield authored and pitrou committed Jul 2, 2019
1 parent 85786ef commit 74d563c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion cpp/src/arrow/python/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ bool IsPythonError(const Status& status) {
return false;
}
auto detail = status.detail();
return detail != nullptr && detail->type_id() == kErrorDetailTypeId;
bool result = detail != nullptr && detail->type_id() == kErrorDetailTypeId;
return result;
}

} // namespace py
Expand Down
2 changes: 0 additions & 2 deletions cpp/src/arrow/status.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Status::Status(StatusCode code, std::string msg, std::shared_ptr<StatusDetail> d
state_->code = code;
state_->msg = std::move(msg);
if (detail != nullptr) {
std::cerr << "!!!!!!non null detail" << detail;
state_->detail = std::move(detail);
}
}
Expand All @@ -42,7 +41,6 @@ void Status::CopyFrom(const Status& s) {
state_ = nullptr;
} else {
state_ = new State(*s.state_);
std::cerr << "!!!!copy_from " << state_->detail;
}
}

Expand Down
3 changes: 3 additions & 0 deletions cpp/src/plasma/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class PlasmaStatusDetail : public arrow::StatusDetail {
case PlasmaErrorCode::PlasmaObjectAlreadySealed:
type = "Plasma object is already sealed";
break;
default:
type = "Unknown plasma error";
break;
}
return std::string(type);
}
Expand Down
2 changes: 1 addition & 1 deletion python/pyarrow/includes/libarrow.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ cdef extern from "arrow/python/api.h" namespace "arrow::py" nogil:
shared_ptr[CDataType] GetPrimitiveType(Type type)
shared_ptr[CDataType] GetTimestampType(TimeUnit unit)

cdef c_bool IsPythonError(const CStatus& status)
c_bool IsPythonError(const CStatus& status)
object PyHalf_FromHalf(npy_half value)

cdef cppclass PyConversionOptions:
Expand Down

0 comments on commit 74d563c

Please sign in to comment.