mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
ARROW-3470: Fix status macro
When ARROW_EXTRA_ERROR_CONTEXT is enabled and the ARROW_RETURN_NOT_OK macro is used in a non-arrow namespace, the compiler would throw an error.
This commit is contained in:
1 parent
1eba067d02
commit
fab63f6f73
1 file changed
+2
-2
@@ -36,7 +36,7 @@
|
||||
if (ARROW_PREDICT_FALSE(!_s.ok())) { \
|
||||
std::stringstream ss; \
|
||||
ss << __FILE__ << ":" << __LINE__ << " code: " << #s << "\n" << _s.message(); \
|
||||
return Status(_s.code(), ss.str()); \
|
||||
return ::arrow::Status(_s.code(), ss.str()); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
std::stringstream ss; \
|
||||
ss << __FILE__ << ":" << __LINE__ << " code: " << _status.CodeAsString() << " \n " \
|
||||
<< _status.message(); \
|
||||
return Status(_status.code(), ss.str()); \
|
||||
return ::arrow::Status(_status.code(), ss.str()); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in new issue
Block a user