| 388 | } |
| 389 | |
| 390 | bool WindowBuild::compareRowsWithKeys( |
| 391 | const char* lhs, |
| 392 | const char* rhs, |
| 393 | const std::vector<std::pair<column_index_t, core::SortOrder>>& keys) { |
| 394 | if (lhs == rhs) { |
| 395 | return false; |
| 396 | } |
| 397 | for (auto& key : keys) { |
| 398 | if (auto result = data_->compare( |
| 399 | lhs, |
| 400 | rhs, |
| 401 | key.first, |
| 402 | {key.second.isNullsFirst(), key.second.isAscending(), false})) { |
| 403 | return result < 0; |
| 404 | } |
| 405 | } |
| 406 | return false; |
| 407 | } |
| 408 | |
| 409 | } // namespace bytedance::bolt::exec |
nothing calls this directly
no test coverage detected