MCPcopy Create free account
hub / github.com/apache/arrow / WrapConversionError

Method WrapConversionError

cpp/src/arrow/csv/column_decoder.cc:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 virtual std::shared_ptr<DataType> type() const = 0;
50
51 Result<std::shared_ptr<Array>> WrapConversionError(
52 const Result<std::shared_ptr<Array>>& result) {
53 if (ARROW_PREDICT_TRUE(result.ok())) {
54 return result;
55 } else {
56 const auto& st = result.status();
57 std::stringstream ss;
58 ss << "In CSV column #" << col_index_ << ": " << st.message();
59 return st.WithMessage(ss.str());
60 }
61 }
62
63 MemoryPool* pool_;
64 int32_t col_index_;

Callers

nothing calls this directly

Calls 3

strMethod · 0.80
okMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected