| 281 | } |
| 282 | |
| 283 | void SortedAggregations::addSingleGroupSpillInput( |
| 284 | char* group, |
| 285 | const VectorPtr& input, |
| 286 | vector_size_t index) { |
| 287 | auto* arrayVector = input->as<ArrayVector>(); |
| 288 | auto* elementsVector = arrayVector->elements()->asFlatVector<StringView>(); |
| 289 | |
| 290 | const auto size = arrayVector->sizeAt(index); |
| 291 | const auto offset = arrayVector->offsetAt(index); |
| 292 | for (auto i = 0; i < size; ++i) { |
| 293 | char* newRow = inputData_->newRow(); |
| 294 | inputData_->storeSerializedRow(*elementsVector, offset + i, newRow); |
| 295 | addNewRow(group, newRow); |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | bool SortedAggregations::compareRowsWithKeys( |
| 300 | const char* lhs, |
no test coverage detected