| 472 | } |
| 473 | |
| 474 | static Status ValidateOrderByOptions(const OrderBySinkNodeOptions& options) { |
| 475 | if (options.sort_options.sort_keys.empty()) { |
| 476 | return Status::Invalid("At least one sort key should be specified"); |
| 477 | } |
| 478 | return ValidateCommonOrderOptions(options); |
| 479 | } |
| 480 | |
| 481 | // A sink node that receives inputs and then compute top_k/bottom_k. |
| 482 | static Result<ExecNode*> MakeSelectK(ExecPlan* plan, std::vector<ExecNode*> inputs, |