| 191 | }); |
| 192 | |
| 193 | inline compute::Expression UseBoringRefs(const compute::Expression& expr) { |
| 194 | if (expr.literal()) return expr; |
| 195 | |
| 196 | if (auto ref = expr.field_ref()) { |
| 197 | return compute::field_ref(*ref->FindOne(*kBoringSchema)); |
| 198 | } |
| 199 | |
| 200 | auto modified_call = *CallNotNull(expr); |
| 201 | for (auto& arg : modified_call.arguments) { |
| 202 | arg = UseBoringRefs(arg); |
| 203 | } |
| 204 | return compute::Expression{std::move(modified_call)}; |
| 205 | } |
| 206 | |
| 207 | int CountProjectNodeOptionsInDeclarations(const acero::Declaration& input) { |
| 208 | int counter = 0; |
no test coverage detected