| 309 | |
| 310 | template<> |
| 311 | void ArrowRowBatch::templateCopyNonNullValue<LogicalTypeID::STRING>(ArrowVector* vector, |
| 312 | const Value& value, std::int64_t pos, bool) { |
| 313 | auto offsets = (std::uint32_t*)vector->data.data(); |
| 314 | auto strLength = value.strVal.length(); |
| 315 | if (pos == 0) { |
| 316 | offsets[pos] = 0; |
| 317 | } |
| 318 | offsets[pos + 1] = offsets[pos] + strLength; |
| 319 | vector->overflow.resize(offsets[pos + 1] + 1); |
| 320 | std::memcpy(vector->overflow.data() + offsets[pos], value.strVal.data(), strLength); |
| 321 | } |
| 322 | |
| 323 | template<> |
| 324 | void ArrowRowBatch::templateCopyNonNullValue<LogicalTypeID::UUID>(ArrowVector* vector, |
nothing calls this directly
no test coverage detected