| 353 | } |
| 354 | |
| 355 | void WindowBuild::sortSpill() { |
| 356 | updateEstimatedOutputRowSize(); |
| 357 | |
| 358 | if (sortSpiller_ == nullptr) { |
| 359 | setupSortSpiller(); |
| 360 | } |
| 361 | |
| 362 | sortSpiller_->spill(); |
| 363 | data_->clear(); |
| 364 | data_->pool()->release(); |
| 365 | } |
| 366 | |
| 367 | vector_size_t WindowBuild::findNextPartitionStartRow(vector_size_t start) { |
| 368 | auto partitionCompare = [&](const char* lhs, const char* rhs) -> bool { |