| 149 | } |
| 150 | |
| 151 | void StringChunkData::write(const ValueVector* vector, offset_t offsetInVector, |
| 152 | offset_t offsetInChunk) { |
| 153 | DASSERT(vector->dataType.getPhysicalType() == PhysicalTypeID::STRING || |
| 154 | vector->dataType.getPhysicalType() == PhysicalTypeID::JSON); |
| 155 | if (!needFinalize && offsetInChunk < numValues) [[unlikely]] { |
| 156 | needFinalize = true; |
| 157 | } |
| 158 | nullData->setNull(offsetInChunk, vector->isNull(offsetInVector)); |
| 159 | if (offsetInChunk >= numValues) { |
| 160 | updateNumValues(offsetInChunk + 1); |
| 161 | } |
| 162 | if (!vector->isNull(offsetInVector)) { |
| 163 | auto str = vector->getValue<string_t>(offsetInVector); |
| 164 | setValueFromString(str.getAsStringView(), offsetInChunk); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | void StringChunkData::write(ColumnChunkData* chunk, ColumnChunkData* dstOffsets, RelMultiplicity) { |
| 169 | DASSERT((chunk->getDataType().getPhysicalType() == PhysicalTypeID::STRING || |
nothing calls this directly
no test coverage detected