Skip to content

Commit 8f011b3

Browse files
emkornfieldpitrou
authored andcommitted
fix status propagation
1 parent 317ea9c commit 8f011b3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cpp/src/arrow/compute/kernels/cast.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
if (ARROW_PREDICT_FALSE(!_s.ok())) { \
5353
std::stringstream ss; \
5454
ss << __FILE__ << ":" << __LINE__ << " code: " << #s << "\n" << _s.message(); \
55-
ctx->SetStatus(Status(_s.code(), ss.str())); \
55+
ctx->SetStatus(Status(_s.code(), ss.str()), s.detail()); \
5656
return; \
5757
} \
5858
} while (0)

cpp/src/arrow/csv/column-builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class TypedColumnBuilder : public ColumnBuilder {
7676
} else {
7777
std::stringstream ss;
7878
ss << "In column #" << col_index_ << ": " << st.message();
79-
return Status(st.code(), ss.str());
79+
return Status(st.code(), ss.str(), st.detail());
8080
}
8181
}
8282

0 commit comments

Comments
 (0)