File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 12
12
#include < arrow/record_batch.h>
13
13
#include < arrow/table.h>
14
14
#include < arrow/type.h>
15
+ #include < arrow/util/config.h>
15
16
#if defined(__GNUC__)
16
17
#pragma GCC diagnostic pop
17
18
#endif
21
22
#include < iostream>
22
23
using namespace arrow ;
23
24
25
+ #if ARROW_VERSION_MAJOR >= 21
26
+ #define ASSERT_OK (expr ) \
27
+ for (::arrow::Status _st = ::arrow::ToStatus((expr)); !_st.ok();) \
28
+ FAIL () << "'" ARROW_STRINGIFY(expr) "' failed with " << _st.ToString()
29
+ #else
24
30
#define ASSERT_OK (expr ) \
25
31
for (::arrow::Status _st = ::arrow::internal::GenericToStatus((expr)); !_st.ok();) \
26
32
FAIL () << "'" ARROW_STRINGIFY(expr) "' failed with " << _st.ToString()
33
+ #endif
27
34
28
35
// Copied from arrow/testing/builder.h
29
36
template <typename TYPE, typename C_TYPE = typename TYPE::c_type>
You can’t perform that action at this time.
0 commit comments