| 60 | |
| 61 | template <typename TYPE, typename C_TYPE> |
| 62 | static inline ArrayPtr MakeArrowTypeArray(const std::shared_ptr<arrow::DataType>& type, |
| 63 | const std::vector<C_TYPE>& values, |
| 64 | const std::vector<bool>& validity) { |
| 65 | ArrayPtr out; |
| 66 | arrow::ArrayFromVector<TYPE, C_TYPE>(type, validity, values, &out); |
| 67 | return out; |
| 68 | } |
| 69 | |
| 70 | #define MakeArrowArrayBool MakeArrowArray<arrow::BooleanType, bool> |
| 71 | #define MakeArrowArrayInt8 MakeArrowArray<arrow::Int8Type, int8_t> |
nothing calls this directly
no outgoing calls
no test coverage detected