| 305 | } |
| 306 | |
| 307 | inline std::optional<int> NextValid(const ScalarVector& values, int first_null) { |
| 308 | auto it = std::find_if(values.begin() + first_null + 1, values.end(), |
| 309 | [](const std::shared_ptr<Scalar>& v) { return v != nullptr; }); |
| 310 | |
| 311 | if (it == values.end()) { |
| 312 | return std::nullopt; |
| 313 | } |
| 314 | |
| 315 | return static_cast<int>(it - values.begin()); |
| 316 | } |
| 317 | |
| 318 | Result<std::vector<std::string>> KeyValuePartitioning::FormatPartitionSegments( |
| 319 | const ScalarVector& values) const { |
no test coverage detected