Checks if output channel is produced using identity projection and returns input channel if so.
| 82 | // Checks if output channel is produced using identity projection and returns |
| 83 | // input channel if so. |
| 84 | std::optional<column_index_t> getIdentityProjection( |
| 85 | const std::vector<IdentityProjection>& projections, |
| 86 | column_index_t outputChannel) { |
| 87 | for (const auto& projection : projections) { |
| 88 | if (projection.outputChannel == outputChannel) { |
| 89 | return projection.inputChannel; |
| 90 | } |
| 91 | } |
| 92 | return std::nullopt; |
| 93 | } |
| 94 | |
| 95 | void validateOperatorResult(RowVectorPtr& result, Operator& op) { |
| 96 | try { |
no outgoing calls
no test coverage detected