arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject arrow git commit: Add note to readme about ARROW_EXTRA_ERROR_CONTEXT
Date Tue, 05 Sep 2017 16:31:45 GMT
Repository: arrow
Updated Branches:
  refs/heads/master 3283d2a9c -> 6e702f959

Add note to readme about ARROW_EXTRA_ERROR_CONTEXT

Change-Id: I1d1dad715e00d45479efce0239e9e1101b540e3b


Branch: refs/heads/master
Commit: 6e702f9590ccd0933cb1953a38b3d50713284d94
Parents: 3283d2a
Author: Wes McKinney <>
Authored: Tue Sep 5 12:29:51 2017 -0400
Committer: Wes McKinney <>
Committed: Tue Sep 5 12:29:51 2017 -0400

 cpp/ | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
diff --git a/cpp/ b/cpp/
index f37ec03..993efb8 100644
--- a/cpp/
+++ b/cpp/
@@ -172,6 +172,28 @@ constructors, the circumstances where they would are somewhat esoteric,
and it
 is likely that an application would have encountered other more serious
 problems prior to having `std::bad_alloc` thrown in a constructor.
+### Extra debugging help
+If you use the CMake option `-DARROW_EXTRA_ERROR_CONTEXT=ON` it will compile
+the libraries with extra debugging information on error checks inside the
+`RETURN_NOT_OK` macro. In unit tests with `ASSERT_OK`, this will yield error
+outputs like:
+../src/arrow/ipc/ Failure
+NotImplemented: ../src/arrow/ipc/ code: writer->WriteRecordBatch(batch)
+../src/arrow/ipc/ code: CheckStarted()
+../src/arrow/ipc/ code: schema_writer.Write(&dictionaries_)
+../src/arrow/ipc/ code: WriteSchema()
+../src/arrow/ipc/ code: WriteSchemaMessage(schema_, dictionary_memo_, &schema_fb)
+../src/arrow/ipc/ code: SchemaToFlatbuffer(fbb, schema, dictionary_memo,
+../src/arrow/ipc/ code: FieldToFlatbuffer(fbb, *schema.field(i),
dictionary_memo, &offset)
+../src/arrow/ipc/ code: TypeToFlatbuffer(fbb, *field.type(), &children,
&layout, &type_enum, dictionary_memo, &type_offset)
+Unable to convert type: decimal(19, 4)
 ### Deprecations and API Changes
 We use the compiler definition `ARROW_NO_DEPRECATED_API` to disable APIs that

View raw message