OmniSciDB  04ee39c94c
ArrowUtil.cpp File Reference
#include "ArrowUtil.h"
#include "DataMgr/BufferMgr/BufferMgr.h"
#include <string>
#include "arrow/status.h"
+ Include dependency graph for ArrowUtil.cpp:

Go to the source code of this file.

Functions

void arrow_status_throw (const ::arrow::Status &s)
 

Function Documentation

◆ arrow_status_throw()

void arrow_status_throw ( const ::arrow::Status &  s)

Definition at line 24 of file ArrowUtil.cpp.

24  {
25  std::string message = s.ToString();
26  switch (s.code()) {
27  case ::arrow::StatusCode::OutOfMemory:
28  throw OutOfMemory(message);
29  default:
30  throw std::runtime_error(message);
31  }
32 }