MCPcopy Create free account
hub / github.com/apache/arrow / MakeArrowTypeArray

Function MakeArrowTypeArray

cpp/src/gandiva/tests/test_util.h:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61template <typename TYPE, typename C_TYPE>
62static 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>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected