| 348 | |
| 349 | template<> |
| 350 | void ArrowRowBatch::templateCopyNonNullValue<LogicalTypeID::LIST>(ArrowVector* vector, |
| 351 | const Value& value, std::int64_t pos, bool fallbackExtensionTypes) { |
| 352 | auto offsets = (std::uint32_t*)vector->data.data(); |
| 353 | auto numElements = value.childrenSize; |
| 354 | if (pos == 0) { |
| 355 | offsets[pos] = 0; |
| 356 | } |
| 357 | offsets[pos + 1] = offsets[pos] + numElements; |
| 358 | std::vector<LogicalType> typeVec; |
| 359 | typeVec.push_back(ListType::getChildType(value.getDataType()).copy()); |
| 360 | resizeChildVectors(vector, typeVec, offsets[pos + 1] + 1, fallbackExtensionTypes); |
| 361 | for (auto i = 0u; i < numElements; i++) { |
| 362 | appendValue(vector->childData[0].get(), *value.children[i], fallbackExtensionTypes); |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | template<> |
| 367 | void ArrowRowBatch::templateCopyNonNullValue<LogicalTypeID::ARRAY>(ArrowVector* vector, |
nothing calls this directly
no test coverage detected