From bc6c4c88fb4bfd1d99e71c8043f0ba0ca5544ae2 Mon Sep 17 00:00:00 2001 From: Micah Kornfield Date: Wed, 8 Jun 2016 11:23:07 -0700 Subject: [PATCH] ARROW-200: [C++/Python] Return error status on string initialization failure Author: Micah Kornfield Closes #88 from emkornfield/emk_arrow_200 and squashes the following commits: 37e23be [Micah Kornfield] ARROW-200: Return error status on string initialization failure --- python/src/pyarrow/adapters/pandas.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/src/pyarrow/adapters/pandas.cc b/python/src/pyarrow/adapters/pandas.cc index 5159d86865caa..8dcc2b1c92e11 100644 --- a/python/src/pyarrow/adapters/pandas.cc +++ b/python/src/pyarrow/adapters/pandas.cc @@ -669,7 +669,7 @@ class ArrowDeserializer { out_values[i] = make_pystring(data, length); if (out_values[i] == nullptr) { - return Status::OK(); + return Status::UnknownError("String initialization failed"); } } } @@ -678,7 +678,7 @@ class ArrowDeserializer { data = string_arr->GetValue(i, &length); out_values[i] = make_pystring(data, length); if (out_values[i] == nullptr) { - return Status::OK(); + return Status::UnknownError("String initialization failed"); } } }