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

Function CastInt64ArrayToTemporalArray

cpp/src/arrow/adapters/orc/adapter_test.cc:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114
115template <typename TargetArrayType>
116std::shared_ptr<Array> CastInt64ArrayToTemporalArray(
117 const std::shared_ptr<DataType>& type, std::shared_ptr<Array> array) {
118 std::shared_ptr<ArrayData> new_array_data =
119 ArrayData::Make(type, array->length(), array->data()->buffers);
120 return std::make_shared<TargetArrayType>(new_array_data);
121}
122
123Result<std::shared_ptr<Array>> GenerateRandomDate64Array(int64_t size,
124 double null_probability) {

Callers

nothing calls this directly

Calls 3

MakeFunction · 0.50
lengthMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected