| 372 | }; |
| 373 | |
| 374 | std::vector<std::unique_ptr<ScopedUpdate>> ScopedUpdates(engine::Context& ctx, redis::GlobalIndexer& indexer, |
| 375 | const std::vector<std::string_view>& keys, |
| 376 | const std::string& ns) { |
| 377 | std::vector<std::unique_ptr<ScopedUpdate>> sus; |
| 378 | |
| 379 | sus.reserve(keys.size()); |
| 380 | for (auto key : keys) { |
| 381 | sus.emplace_back(std::make_unique<ScopedUpdate>(&ctx, indexer, key, ns)); |
| 382 | } |
| 383 | |
| 384 | return sus; |
| 385 | } |
| 386 | |
| 387 | TEST_F(PlanExecutorTestC, NumericFieldScan) { |
| 388 | redis::GlobalIndexer indexer(storage_.get()); |