| 497 | } |
| 498 | |
| 499 | static Status ValidateSelectKOptions(const SelectKSinkNodeOptions& options) { |
| 500 | if (options.select_k_options.k <= 0) { |
| 501 | return Status::Invalid("`k` must be > 0"); |
| 502 | } |
| 503 | return ValidateCommonOrderOptions(options); |
| 504 | } |
| 505 | |
| 506 | Status InputReceived(ExecNode* input, ExecBatch batch) override { |
| 507 | auto scope = TraceInputReceived(batch); |